Versions in this module Expand all Collapse all v2 v2.4.1 Jan 5, 2021 v2.4.0 Jan 5, 2021 Changes in this version + func ParseSegmentAsSubroute(h Helper) (caddyhttp.MiddlewareHandler, error) + func RegisterDirective(dir string, setupFunc UnmarshalFunc) + func RegisterGlobalOption(opt string, setupFunc UnmarshalGlobalFunc) + func RegisterHandlerDirective(dir string, setupFunc UnmarshalHandlerFunc) + type Address struct + Host string + Original string + Path string + Port string + Scheme string + func ParseAddress(str string) (Address, error) + func (a Address) Key() string + func (a Address) Normalize() Address + func (a Address) String() string + type ConfigValue struct + Class string + Value interface{} + type Helper struct + State map[string]interface{} + func (h Helper) Caddyfiles() []string + func (h Helper) ExtractMatcherSet() (caddy.ModuleMap, error) + func (h Helper) GroupRoutes(vals []ConfigValue) + func (h Helper) JSON(val interface{}) json.RawMessage + func (h Helper) MatcherToken() (caddy.ModuleMap, bool, error) + func (h Helper) NewBindAddresses(addrs []string) []ConfigValue + func (h Helper) NewRoute(matcherSet caddy.ModuleMap, handler caddyhttp.MiddlewareHandler) []ConfigValue + func (h Helper) Option(name string) interface{} + type ServerType struct + func (st ServerType) Setup(inputServerBlocks []caddyfile.ServerBlock, options map[string]interface{}) (*caddy.Config, []caddyconfig.Warning, error) + type UnmarshalFunc func(h Helper) ([]ConfigValue, error) + type UnmarshalGlobalFunc func(d *caddyfile.Dispenser) (interface{}, error) + type UnmarshalHandlerFunc func(h Helper) (caddyhttp.MiddlewareHandler, error)