Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationService ¶
type ConfigurationService struct{}
func (*ConfigurationService) GetConfig ¶
func (config *ConfigurationService) GetConfig() models.Config
type CryptoService ¶
type CryptoService struct {
// contains filtered or unexported fields
}
func (*CryptoService) GenerateToken ¶
func (cryptoService *CryptoService) GenerateToken(user models.User) (string, error)
Generate JWT Token
func (*CryptoService) Init ¶
func (cryptoService *CryptoService) Init(config models.Config)
func (*CryptoService) TokenVerifyMiddleWare ¶
func (cryptoService *CryptoService) TokenVerifyMiddleWare(next http.HandlerFunc) http.HandlerFunc
type UserService ¶
type UserService struct { ConfigurationService ConfigurationService CryptoService CryptoService UserRepository repository.UserRepository }
func (UserService) GetUserByEmail ¶
func (userService UserService) GetUserByEmail(email string) (models.UserResult, error)
func (UserService) RegisterUser ¶
Click to show internal directories.
Click to hide internal directories.