Versions in this module Expand all Collapse all v4 v4.9.0 Jul 31, 2024 Changes in this version + func Encode(e *Endpoint) map[string]string + func Validate(e *Endpoint) error + type Endpoint struct + Description string + Handler string + Host []string + Method []string + Name string + Path []string + Stream bool + func Decode(e map[string]string) *Endpoint + type Option func(o *Options) + func WithHandler(h string) Option + func WithLogger(l logger.Logger) Option + func WithRegistry(r registry.Registry) Option + func WithResolver(r resolver.Resolver) Option + type Options struct + Handler string + Logger logger.Logger + Registry registry.Registry + Resolver resolver.Resolver + func NewOptions(opts ...Option) Options + type Route struct + Endpoint *Endpoint + Service string + Versions []*registry.Service + type Router interface + Deregister func(r *Route) error + Options func() Options + Register func(r *Route) error + Route func(r *http.Request) (*Route, error) + Stop func() error