Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator struct
func CreateUserAuthenticator ¶
func CreateUserAuthenticator(userRepository repository.User, jwtCreator JwtCreator) *Authenticator
CreateUserAuthenticator Authenticator constructor
type Creator ¶
type Creator struct {
// contains filtered or unexported fields
}
Creator creates a user from request
func CreateUserCreator ¶
func CreateUserCreator(userRepository repository.User) *Creator
CreateUserCreator Creator constructor
type JwtCreator ¶
JwtCreator interface
type JwtService ¶
JwtService struct
func CreateJwtService ¶
func CreateJwtService(secret string, tokenDays int) *JwtService
CreateJwtService JwtService constructor
Click to show internal directories.
Click to hide internal directories.