Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { Router *chi.Mux Session *scs.SessionManager Configuration *configuration.Configuration Log *zap.Logger Enforcer *casbin.Enforcer }
Server structure
func (*Server) Authenticated ¶
func (s *Server) Authenticated(next http.HandlerFunc) http.HandlerFunc
Authenticated routes
func (*Server) Authorized ¶
func (s *Server) Authorized(next http.HandlerFunc) http.HandlerFunc
Authorized middleware
Click to show internal directories.
Click to hide internal directories.