Unmarshaler is a type that can unmarshal Caddyfile tokens to set itself up for a JSON encoding. The goal of an unmarshaler is not to set itself up for actual use, but to set itself up for being marshaled into JSON. Caddyfile-unmarshaled values will not be used directly; they will be encoded as JSON
| 104 | // `d.Next()` at the start should be used to consume the module |
| 105 | // identifier token (directive name, etc). |
| 106 | type Unmarshaler interface { |
| 107 | UnmarshalCaddyfile(d *Dispenser) error |
| 108 | } |
| 109 | |
| 110 | // ServerType is a type that can evaluate a Caddyfile and set up a caddy config. |
| 111 | type ServerType interface { |
no outgoing calls
no test coverage detected