auth

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationMiddleware

type AuthenticationMiddleware struct {
	Store IStore
	Roles []string
}

func NewAuthMid

func NewAuthMid(Store IStore, roles ...string) *AuthenticationMiddleware

func (*AuthenticationMiddleware) Middleware

func (amw *AuthenticationMiddleware) Middleware(next http.Handler) http.Handler

type IStore

type IStore interface {
	GetUser(username string, user interface{}) (err error)
}

Jump to

Keyboard shortcuts

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