Versions in this module Expand all Collapse all v11 v11.1.1 Jan 16, 2019 v11.1.0 Nov 18, 2018 Changes in this version + const AcceptHeaderKey + const AcceptHeaderVersionValue + const AcceptVersionHeaderKey + const Key + const NotFound + var DefaultDeprecationOptions = DeprecationOptions + var NotFoundHandler = func(ctx context.Context) + func Deprecated(handler context.Handler, options DeprecationOptions) context.Handler + func GetVersion(ctx context.Context) string + func If(v string, is string) bool + func Match(ctx context.Context, expectedVersion string) bool + func NewMatcher(versions Map) context.Handler + func RegisterGroups(r router.Party, notFoundHandler context.Handler, groups ...*Group) (actualRoutes []*router.Route) + type DeprecationOptions struct + DeprecationDate time.Time + DeprecationInfo string + WarnMessage string + func (opts DeprecationOptions) ShouldHandle() bool + type Group struct + func NewGroup(version string) *Group + func (g *Group) AllowMethods(methods ...string) *Group + func (g *Group) Any(registeredPath string, handler context.Handler) + func (g *Group) Connect(path string, handler context.Handler) + func (g *Group) Delete(path string, handler context.Handler) + func (g *Group) Deprecated(options DeprecationOptions) *Group + func (g *Group) Get(path string, handler context.Handler) + func (g *Group) Handle(method string, path string, handler context.Handler) + func (g *Group) Head(path string, handler context.Handler) + func (g *Group) None(path string, handler context.Handler) + func (g *Group) Options(path string, handler context.Handler) + func (g *Group) Patch(path string, handler context.Handler) + func (g *Group) Post(path string, handler context.Handler) + func (g *Group) Put(path string, handler context.Handler) + func (g *Group) Trace(path string, handler context.Handler) + type Map map[string]context.Handler