Versions in this module Expand all Collapse all v2 v2.5.2 Jun 8, 2022 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) + func WasReplacedPlaceholderShorthand(token string) string + type Address struct + Host string + Original string + Path string + Port string + Scheme string + func ParseAddress(str string) (Address, error) + func (a Address) Normalize() Address + func (a Address) String() string + type App struct + Name string + Value json.RawMessage + 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{} + func (h Helper) WithDispenser(d *caddyfile.Dispenser) Helper + 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, existingVal interface{}) (interface{}, error) + type UnmarshalHandlerFunc func(h Helper) (caddyhttp.MiddlewareHandler, error)