filter

package
v0.0.0-...-6e9c874 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	URLMap map[string]struct{}
)

Functions

func NewAdminToken

func NewAdminToken(userID uint32, tokenKey string) (string, error)

func Skipper

func Skipper(path string) bool

Types

type JWTFilter

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

func New

func New(token string) *JWTFilter

func NewWithDB

func NewWithDB(token string, db *sql.DB) *JWTFilter

func (*JWTFilter) Check

func (f *JWTFilter) Check(ctx *server.Context) bool

Jump to

Keyboard shortcuts

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