Documentation ¶
Index ¶
Constants ¶
View Source
const URLPrefix = "/api"
URLPrefix ...
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context ...
func NewContextWithWay ¶
NewContextWithWay ... Deprecated: this is a transition function to reuse 'way' created by server
func (*Context) RegisterEndpoint ¶
func (r *Context) RegisterEndpoint(info EndpointInfo)
RegisterEndpoint ...
func (*Context) RegisterEndpointWithPrefix ¶
func (r *Context) RegisterEndpointWithPrefix(info EndpointInfo, prefix string)
RegisterEndpointWithPrefix ...
type EndpointInfo ¶
type EndpointInfo struct { HTTPMethod string URLPattern string Handler handler.EndpointHandler Verifications []middleware.VerificationType }
EndpointInfo ...
type HandlerServiceProvider ¶
type HandlerServiceProvider struct { DB *db.DatabaseInterface Redis *db.RedisInterface HTTPClient *http.Client }
HandlerServiceProvider ...
Click to show internal directories.
Click to hide internal directories.