Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DTO ¶
type DTO struct {
rbac.BaseDTO
ExpiredAt lang.Time `json:"expired_at"`
Session rbac.SessionDTO `json:"session"`
Properties map[string]string `json:"properties"`
}
DTO 是 JSON 结构形式的 JWT
type Getter ¶
type Getter interface {
GetDTO(c context.Context) (*DTO, error)
GetText(c context.Context) (Text, error)
}
Getter 用来获取跟上下文绑定的JWT
type Registration ¶
Registration 表示 JWT 组件的注册信息
type Registry ¶
type Registry interface {
ListRegistrations() []*Registration
}
Registry 是 JWT 组件的注册接口
Click to show internal directories.
Click to hide internal directories.