Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthService ¶
func NewAuthService(adapter port.AuthAdapter) port.AuthService
func NewMigrationService ¶
func NewMigrationService(ctx *apptypes.Context) port.MigrationService
func NewUserService ¶
func NewUserService(adapter port.AuthAdapter) port.UserService
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func (*AuthService) Login ¶
func (s *AuthService) Login(login, password string) (types.Session, error)
Login checks the provided login and password against the database. If the login is valid and the password matches, it returns a token that can be used to authenticate future requests.
func (*AuthService) Logout ¶
func (s *AuthService) Logout(token string) error
type MigrationService ¶
type MigrationService struct {
// contains filtered or unexported fields
}
func (*MigrationService) GetUUID ¶
func (s *MigrationService) GetUUID() uuid.UUID
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func (*UserService) GetUserByID ¶
func (s *UserService) GetUserByID(id uint) (types.User, error)
func (*UserService) GetUserCredentialsMethods ¶
func (s *UserService) GetUserCredentialsMethods(userID uint) ([]types.CredentialsMethods, error)
Click to show internal directories.
Click to hide internal directories.