Documentation ¶
Index ¶
- type GinJWTokenAdapter
- func (inst *GinJWTokenAdapter) Accept(c context.Context) bool
- func (inst *GinJWTokenAdapter) GetDTO(c context.Context) (*jwt.Token, error)
- func (inst *GinJWTokenAdapter) GetText(c context.Context) (jwt.Text, error)
- func (inst *GinJWTokenAdapter) ListRegistrations() []*jwt.Registration
- func (inst *GinJWTokenAdapter) SetDTO(c context.Context, o *jwt.Token) error
- func (inst *GinJWTokenAdapter) SetText(c context.Context, t jwt.Text) error
- type JSONGinResponder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GinJWTokenAdapter ¶
type GinJWTokenAdapter struct { JWTser jwt.Service //starter:inject("#") CookieMaxAge int //starter:inject("${jwt.gin-adapter.cookie-max-age}") UseCookie bool //starter:inject("${jwt.gin-adapter.use-cookie}") UseHeader bool //starter:inject("${jwt.gin-adapter.use-header}") // contains filtered or unexported fields }
GinJWTokenAdapter ...
func (*GinJWTokenAdapter) Accept ¶
func (inst *GinJWTokenAdapter) Accept(c context.Context) bool
Accept ...
func (*GinJWTokenAdapter) ListRegistrations ¶
func (inst *GinJWTokenAdapter) ListRegistrations() []*jwt.Registration
ListRegistrations ...
type JSONGinResponder ¶
type JSONGinResponder struct {
// contains filtered or unexported fields
}
JSONGinResponder 用来发送 JSON 形式的 HTTP 响应
func (*JSONGinResponder) Accept ¶
func (inst *JSONGinResponder) Accept(resp *libgin.Response) bool
Accept ...
func (*JSONGinResponder) ListRegistrations ¶
func (inst *JSONGinResponder) ListRegistrations() []*libgin.ResponderRegistration
ListRegistrations ...
Click to show internal directories.
Click to hide internal directories.