middleware

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳