Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupMiddleware ¶
func SetupMiddleware(route *chi.Mux, config *common_utils.BaseConfig)
Types ¶
type AuthMiddleware ¶
type AuthMiddleware interface { CheckIsAuthenticated(handler http.Handler) http.Handler CheckIsRefresh(handler http.Handler) http.Handler CheckIsAdmin(handler http.Handler) http.Handler }
func NewAuthMiddleware ¶
func NewAuthMiddleware(jwt jwtMaker.JWT) AuthMiddleware
type AuthMiddlewareImpl ¶
type AuthMiddlewareImpl struct {
// contains filtered or unexported fields
}
func (*AuthMiddlewareImpl) CheckIsAdmin ¶
func (m *AuthMiddlewareImpl) CheckIsAdmin(next http.Handler) http.Handler
func (*AuthMiddlewareImpl) CheckIsAuthenticated ¶
func (m *AuthMiddlewareImpl) CheckIsAuthenticated(next http.Handler) http.Handler
func (*AuthMiddlewareImpl) CheckIsRefresh ¶
func (m *AuthMiddlewareImpl) CheckIsRefresh(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.