Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireAuth ¶
func RequireAuth(next http.HandlerFunc, redirectTo ...string) http.HandlerFunc
func RequireGuest ¶
func RequireGuest(next http.HandlerFunc, redirectTo ...string) http.HandlerFunc
Types ¶
type AuthMiddleWare ¶
type AuthMiddleWare struct {
// contains filtered or unexported fields
}
func NewAuthMiddleware ¶
func NewAuthMiddleware(userService services.UserServiceInterface) *AuthMiddleWare
func (*AuthMiddleWare) Auth ¶
func (m *AuthMiddleWare) Auth(next http.HandlerFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.