Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerAuthService ¶
type CustomerAuthService struct {
// contains filtered or unexported fields
}
func NewCustomerAuthService ¶
func NewCustomerAuthService(customersRepo interfaces.CustomersRepository, secretKey string) *CustomerAuthService
func (CustomerAuthService) CreateAccessToken ¶
func (serv CustomerAuthService) CreateAccessToken(claims utils.Claims) (string, error)
func (CustomerAuthService) DoLogin ¶
func (serv CustomerAuthService) DoLogin(name, key string) (utils.Claims, error)
func (CustomerAuthService) Register ¶
func (serv CustomerAuthService) Register(name, namespace, key string) error
Click to show internal directories.
Click to hide internal directories.