Versions in this module Expand all Collapse all v0 v0.14.0 Jul 11, 2026 Changes in this version + var ErrMethodNotAllowed = errors.New("openapi operation not found") + var ErrPathNotFound = errors.New("openapi path not found") + type Option func(*options) + func WithPathLookup(lookup PathLookup) Option + func WithPathOnlyMatching() Option + func WithRegexCache(cache RegexCache) Option + type PathLookup interface + Lookup func(string) (*v3.PathItem, string, bool) + type RegexCache interface + Load func(key any) (value any, ok bool) + Store func(key, value any) + type Route struct + Document *v3.Document + Method string + Operation *v3.Operation + Path string + PathItem *v3.PathItem + PathParams map[string]string + RawPathParams map[string]string + Server *v3.Server + ServerParams map[string]string + type RouteError struct + Kind error + Route *Route + func (e *RouteError) Error() string + func (e *RouteError) Unwrap() error + type Router interface + FindRoute func(*http.Request) (*Route, error) + Release func() + func NewRouter(document *v3.Document, opts ...Option) Router