Documentation
¶
Index ¶
- type CKey
- type Error
- type Gin
- func (gin *Gin) AuthAccessMiddleware() g.HandlerFunc
- func (gin *Gin) AuthRefreshMiddleware() g.HandlerFunc
- func (gin *Gin) CreateSessionJwt(uid uint64, iss string) (TokenV1, error)
- func (gin *Gin) ErrorResponse(c *g.Context, code int, msg string, iss string, err error)
- func (gin *Gin) RefreshSessionJwt(uid uint64, key string, req string) (TokenV1, error)
- type Options
- type TokenV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gin ¶
type Gin struct {
Gin *g.Engine
Router *g.RouterGroup
Jwt *j.Jwt
AuthClient auth.AuthServiceClient
*Options
}
func (*Gin) AuthAccessMiddleware ¶ added in v1.2.0
func (gin *Gin) AuthAccessMiddleware() g.HandlerFunc
func (*Gin) AuthRefreshMiddleware ¶ added in v1.2.0
func (gin *Gin) AuthRefreshMiddleware() g.HandlerFunc
func (*Gin) CreateSessionJwt ¶ added in v1.2.0
func (*Gin) ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.