Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct { SwaggerController controllers.SwaggerController FilmController controllers.FilmController UserController controllers.UserController }
func NewHandler ¶
func NewHandler(fc *controllers.FilmController, uc *controllers.UserController) *Handler
func (*Handler) InitRouter ¶
func (c *Handler) InitRouter(conf *configParser.ConnectionConfig) http.Handler
TODO: Set context through all handlers
type Middleware ¶
func CacheMiddlewareTTL ¶
func CacheMiddlewareTTL(ttl int) Middleware
Click to show internal directories.
Click to hide internal directories.