authz

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

func (*Authorizer) Shutdown added in v0.2.3

func (a *Authorizer) Shutdown(ctx context.Context) error

type Options added in v0.2.3

type Options struct {
	AppCode       string
	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