Documentation ¶
Index ¶
- type JwtService
- type UserService
- func (s *UserService) Authorize(auth *model.Auth) (user model.User, error error)
- func (s *UserService) CreateAuth(user *model.User) (tokenSet model.TokenSet, expire_in model.ExpireIn, error error)
- func (s *UserService) DeleteAuth(accessToken string) (error error)
- func (s *UserService) RefreshAuth(refreshToken string) (tokenSet model.TokenSet, expire_in int64, error error)
- func (s *UserService) VerifyAuth(accessToken string) (user model.User, expire_in int64, error error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtService ¶
type JwtService struct{}
func (*JwtService) CreateToken ¶
func (*JwtService) CreateToken(signKey *rsa.PrivateKey, expiration int) (stToken model.Token, createError error)
func (*JwtService) VerifyToken ¶
type UserService ¶
type UserService struct{}
func (*UserService) CreateAuth ¶
func (*UserService) DeleteAuth ¶
func (s *UserService) DeleteAuth(accessToken string) (error error)
func (*UserService) RefreshAuth ¶
func (*UserService) VerifyAuth ¶
Click to show internal directories.
Click to hide internal directories.