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 ¶ added in v1.0.13
type AuthMiddleware interface { CheckIsAuthenticated(handler http.Handler) http.Handler CheckIsRefresh(handler http.Handler) http.Handler CheckIsAdmin(handler http.Handler) http.Handler }
func NewAuthMiddleware ¶ added in v1.0.13
func NewAuthMiddleware(jwt jwtMaker.JWT) AuthMiddleware
type AuthMiddlewareImpl ¶ added in v1.0.13
type AuthMiddlewareImpl struct {
// contains filtered or unexported fields
}
func (*AuthMiddlewareImpl) CheckIsAdmin ¶ added in v1.0.33
func (m *AuthMiddlewareImpl) CheckIsAdmin(next http.Handler) http.Handler
func (*AuthMiddlewareImpl) CheckIsAuthenticated ¶ added in v1.0.13
func (m *AuthMiddlewareImpl) CheckIsAuthenticated(next http.Handler) http.Handler
func (*AuthMiddlewareImpl) CheckIsRefresh ¶ added in v1.0.24
func (m *AuthMiddlewareImpl) CheckIsRefresh(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.