Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationConfiguration ¶
type AuthenticationConfiguration func(*AuthenticationService) error
func WithAuthMemoryRepository ¶
func WithAuthMemoryRepository() AuthenticationConfiguration
func WithAuthRepository ¶
func WithAuthRepository(config config.Posgres) AuthenticationConfiguration
func WithJWTService ¶
func WithJWTService(redis config.Redis) AuthenticationConfiguration
type AuthenticationService ¶
type AuthenticationService struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfgs ...AuthenticationConfiguration) (*AuthenticationService, error)
func (*AuthenticationService) LogIn ¶
func (as *AuthenticationService) LogIn(username, pass string) (*entity.TokenDetails, error)
func (*AuthenticationService) Register ¶
func (as *AuthenticationService) Register(username, pass string) (*entity.TokenDetails, error)
Click to show internal directories.
Click to hide internal directories.