Documentation ¶
Index ¶
- type Auth
- func (auth *Auth) CreateRefreshToken(id int64, username string, role int16) (refresh_uuid string)
- func (auth *Auth) CreateSessionToken(refresh_uuid string) (session_uuid string)
- func (auth *Auth) DeleteRefreshToken(refresh_uuid string)
- func (auth *Auth) DeleteSessionToken(session_uuid string)
- func (auth *Auth) SetPrefix(prefix string)
- func (auth *Auth) VerifyRefreshToken(refresh_uuid string) *Token
- func (auth *Auth) VerifySessionToken(session_uuid string) (refresh_uuid string)
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) CreateRefreshToken ¶
func (*Auth) CreateSessionToken ¶
func (*Auth) DeleteRefreshToken ¶ added in v1.0.1
func (*Auth) DeleteSessionToken ¶ added in v1.0.1
func (*Auth) VerifyRefreshToken ¶
func (*Auth) VerifySessionToken ¶
Click to show internal directories.
Click to hide internal directories.