Versions in this module Expand all Collapse all v1 v1.18.2 Oct 16, 2020 Changes in this version + var ErrInvalidPath = errors.New("invalid path") + var ErrNotFound = errors.New("not found") + type Endpoint struct + Domain string + Host string + Method string + Name string + Path string + type Option func(o *Options) + func WithHandler(h string) Option + func WithServicePrefix(p string) Option + type Options struct + Handler string + ServicePrefix string + func NewOptions(opts ...Option) Options + type ResolveOption func(*ResolveOptions) + func Domain(n string) ResolveOption + type ResolveOptions struct + Domain string + func NewResolveOptions(opts ...ResolveOption) ResolveOptions + type Resolver interface + Resolve func(r *http.Request, opts ...ResolveOption) (*Endpoint, error) + String func() string