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
type Options ¶ added in v0.2.3
type Options struct { AppCode string Authorization *authz.Authorization }
Options is the options for the authz middleware.
Click to show internal directories.
Click to hide internal directories.