middleware

package
v0.0.0-...-5ad4795 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsernameKey = "username"
	UserIP      = "ip"
	KeyUserID   = "userid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOperator

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

func (*AuthOperator) AuthFunc

func (ao *AuthOperator) AuthFunc() gin.HandlerFunc

func (*AuthOperator) SetStrategy

func (ao *AuthOperator) SetStrategy(strategy AuthStrategy)

type AuthStrategy

type AuthStrategy interface {
	AuthFunc() gin.HandlerFunc
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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