Documentation ¶
Overview ¶
Package contexthandler contains the ContextHandler service.
Index ¶
Constants ¶
View Source
const ( InvalidUsernamePassword = "invalid username or password" InvalidAPIKey = "invalid API key" )
View Source
const ServiceName = "ContextHandler"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextHandler ¶
type ContextHandler struct { Cfg *setting.Cfg `inject:""` AuthTokenService models.UserTokenService `inject:""` RemoteCache *remotecache.RemoteCache `inject:""` RenderService rendering.Service `inject:""` SQLStore *sqlstore.SQLStore `inject:""` // GetTime returns the current time. // Stubbable by tests. GetTime func() time.Time }
ContextHandler is a middleware.
func (*ContextHandler) Middleware ¶
func (h *ContextHandler) Middleware(c *macaron.Context)
Middleware provides a middleware to initialize the Macaron context.
Click to show internal directories.
Click to hide internal directories.