Documentation ¶
Index ¶
- Constants
- func DefaultConfig() *config
- type AccessTokenTicket
- type Component
- func (c *Component) CheckAccessToken(tokenStr string) bool
- func (c *Component) CreateAccessToken(uid int, startTime int64) (resp AccessTokenTicket, err error)
- func (c *Component) DecodeAccessToken(tokenStr string) (resp map[string]interface{}, err error)
- func (c *Component) EncodeAccessToken(jwtId int, uid int, startTime int64) (tokenStr string, err error)
- func (c *Component) RefreshAccessToken(tokenStr string, startTime int64) (resp AccessTokenTicket, err error)
- type Container
- type Option
Constants ¶
View Source
const PackageName = "component.token"
PackageName ..
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessTokenTicket ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) CheckAccessToken ¶
func (*Component) CreateAccessToken ¶
func (c *Component) CreateAccessToken(uid int, startTime int64) (resp AccessTokenTicket, err error)
func (*Component) DecodeAccessToken ¶
func (*Component) EncodeAccessToken ¶
func (*Component) RefreshAccessToken ¶
func (c *Component) RefreshAccessToken(tokenStr string, startTime int64) (resp AccessTokenTicket, err error)
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func DefaultContainer ¶
func DefaultContainer() *Container
Click to show internal directories.
Click to hide internal directories.