Documentation ¶
Index ¶
- type AuthService
- func (srvc AuthService) CreateRefreshToken(userID uint, td *TokenDetails) error
- func (srvc AuthService) GenerateJWT(user models.User) (*TokenDetails, error)
- func (srvc AuthService) Login(form types.LoginForm) (user models.User, token Token, err error)
- func (srvc AuthService) Register(form types.RegisterForm) (user models.User, err error)
- type BookService
- type Token
- type TokenDetails
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct{}
func (AuthService) CreateRefreshToken ¶
func (srvc AuthService) CreateRefreshToken(userID uint, td *TokenDetails) error
func (AuthService) GenerateJWT ¶
func (srvc AuthService) GenerateJWT(user models.User) (*TokenDetails, error)
func (AuthService) Register ¶
func (srvc AuthService) Register(form types.RegisterForm) (user models.User, err error)
type BookService ¶
func InitBookService ¶
func InitBookService() *BookService
type TokenDetails ¶
type UserService ¶
func InitUserService ¶
func InitUserService() *UserService
Click to show internal directories.
Click to hide internal directories.