authz

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 7 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

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"`
	ConfigPath    string `yaml:"configPath" json:"configPath"`
	Authorization *authz.Authorization
}

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