Documentation ¶
Index ¶
- type MWHandler
- func (h *MWHandler) Auth(next http.Handler) http.Handler
- func (h *MWHandler) AuthWithAdmin(next http.Handler) http.Handler
- func (h *MWHandler) ContextLogger(context string) *logrus.Entry
- func (h *MWHandler) Headers(next http.Handler) http.Handler
- func (h *MWHandler) Limit(next http.Handler) http.Handler
- func (h *MWHandler) Recover(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MWHandler ¶
type MWHandler struct { Cfg *configuration.AppConfig Ds *dbservice.DBService SessMgr *sessionstore.SessionManager Logger *logrus.Entry }
func (*MWHandler) Headers ¶
Headers middleware sets default headers to prevent caching and other things
Click to show internal directories.
Click to hide internal directories.