Documentation ¶
Index ¶
- type Config
- type Module
- func (m *Module) ClearToken(tokenMd5 string) error
- func (m *Module) ClearTokenOfUser(uid string, provider string) error
- func (m *Module) EncodeToken(token string) string
- func (m *Module) FindToken(tokenMd5 string) (user map[string]string)
- func (m *Module) GetUserTokenKey(uid string, provider string) string
- func (m *Module) NewToken(user map[string]string) (string, int64, error)
- func (m *Module) StoreToken(claim *UserClaims, token string) error
- type UserClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
func (*Module) ClearTokenOfUser ¶
清除用户的Token
func (*Module) EncodeToken ¶
func (*Module) GetUserTokenKey ¶
func (*Module) StoreToken ¶
func (m *Module) StoreToken(claim *UserClaims, token string) error
type UserClaims ¶
Click to show internal directories.
Click to hide internal directories.