Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Helper httpserver.HelperInterface // contains filtered or unexported fields }
Context ...
func NewService ¶
func NewService(router httpserver.RouterInterface, helper httpserver.HelperInterface, middleware ma.Middleware, prefix string) Context
func (*Context) InitOptionsRoute ¶
func (r *Context) InitOptionsRoute()
func (*Context) RegisterEndpoint ¶
func (r *Context) RegisterEndpoint(info EndpointInfo)
RegisterEndpoint ...
func (*Context) RegisterEndpointWithPrefix ¶
func (r *Context) RegisterEndpointWithPrefix(info EndpointInfo, prefix string)
RegisterEndpointWithPrefix ...
func (*Context) RegisterRootEndpoint ¶ added in v1.3.0
func (r *Context) RegisterRootEndpoint(info EndpointInfo)
RegisterRootEndpoint ...
type EndpointInfo ¶
type EndpointInfo struct { HTTPMethod string URLPattern string Handler handler.EndpointHandler Verifications []constants.VerificationType }
Click to show internal directories.
Click to hide internal directories.