authz

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware added in v0.4.0

func Middleware() handler.Middleware

Middleware implement the handler.MiddlewareNewFunc

Types

type Authorizer added in v0.2.3

type Authorizer struct{}

Authorizer web api authorizer.

Because of the dependency on JwtToken, the middleware configuration order must come after jwt.

func New added in v0.2.3

func New() *Authorizer

func (*Authorizer) ApplyFunc added in v0.2.3

func (a *Authorizer) ApplyFunc(cfg *conf.Configuration) gin.HandlerFunc

func (*Authorizer) Name added in v0.2.3

func (a *Authorizer) Name() string

type Options added in v0.2.3

type Options struct {
	AppCode string `yaml:"appCode" json:"appCode"`
}

Options is the options for the authz middleware.

Jump to

Keyboard shortcuts

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