middleware

package
v0.0.0-...-325dcee Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJwtHeaders

func AddJwtHeaders(next http.Handler) http.Handler

func CreateCORSHandler

func CreateCORSHandler(router *mux.Router) http.Handler

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

Types

type AuthMiddleware

type AuthMiddleware interface {
	SessionMiddleware(http.Handler) http.Handler
}

type AuthzMiddleware

type AuthzMiddleware struct {
	// contains filtered or unexported fields
}

NewUserMiddleware is a middleware that checks if the user is new.

func NewAuthzMiddleware

func NewAuthzMiddleware(membersDatasoter controllers.MembersDatastore) *AuthzMiddleware

NewAuthzMiddleware creates a new user middleware.

func (*AuthzMiddleware) CheckAuthz

func (k *AuthzMiddleware) CheckAuthz(next http.Handler) http.Handler

type DebugAuth

type DebugAuth struct {
}

func (*DebugAuth) SessionMiddleware

func (app *DebugAuth) SessionMiddleware(next http.Handler) http.Handler

type UserMiddleware

type UserMiddleware struct {
	// contains filtered or unexported fields
}

NewUserMiddleware is a middleware that checks if the user is new.

func NewUserMiddleware

func NewUserMiddleware(members controllers.MembersDatastore) *UserMiddleware

NewUserMiddleware creates a new user middleware.

func (*UserMiddleware) NewUserMiddlewareCheck

func (k *UserMiddleware) NewUserMiddlewareCheck(next http.Handler) http.Handler

type UserRegistrationNotCompleteError

type UserRegistrationNotCompleteError struct {
	UserID string
}

func (*UserRegistrationNotCompleteError) Error

func (userNCE *UserRegistrationNotCompleteError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL