Versions in this module Expand all Collapse all v2 v2.8.4 Sep 29, 2024 Changes in this version + func ParseSegmentAsSubroute(h Helper) (kenginehttp.MiddlewareHandler, error) + func RegisterDirective(dir string, setupFunc UnmarshalFunc) + func RegisterDirectiveOrder(dir string, position Positional, standardDir string) + 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 ComplexShorthandReplacer struct + type ConfigValue struct + Class string + Value any + type Helper struct + State map[string]any + func (h Helper) ExtractMatcherSet() (kengine.ModuleMap, error) + func (h Helper) GroupRoutes(vals []ConfigValue) + func (h Helper) JSON(val any) json.RawMessage + func (h Helper) Kenginefiles() []string + func (h Helper) MatcherToken() (kengine.ModuleMap, bool, error) + func (h Helper) NewRoute(matcherSet kengine.ModuleMap, handler kenginehttp.MiddlewareHandler) []ConfigValue + func (h Helper) Option(name string) any + func (h Helper) WithDispenser(d *kenginefile.Dispenser) Helper + type Positional string + const After + const Before + const First + const Last + type ServerType struct + func (st ServerType) Setup(inputServerBlocks []kenginefile.ServerBlock, options map[string]any) (*kengine.Config, []kengineconfig.Warning, error) + type ShorthandReplacer struct + func NewShorthandReplacer() ShorthandReplacer + func (s ShorthandReplacer) ApplyToSegment(segment *kenginefile.Segment) + type UnmarshalFunc func(h Helper) ([]ConfigValue, error) + type UnmarshalGlobalFunc func(d *kenginefile.Dispenser, existingVal any) (any, error) + type UnmarshalHandlerFunc func(h Helper) (kenginehttp.MiddlewareHandler, error) Other modules containing this package github.com/khulnasoft/kengine