Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func HashPassword(password string) (string, error)
- type AuthenticationService
- func (a *AuthenticationService) AuthUser(ctx context.Context) (database.UserOut, error)
- func (a *AuthenticationService) GetAll(ctx context.Context) ([]database.UserOut, error)
- func (a *AuthenticationService) Login(ctx context.Context, username string, password string) (database.UserOut, string, error)
- func (a *AuthenticationService) Register(ctx context.Context, user database.UserIn) (string, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
Types ¶
type AuthenticationService ¶
type Service ¶
type Service interface { Login(ctx context.Context, username string, password string) (database.UserOut, string, error) Register(ctx context.Context, user database.UserIn) (string, error) GetAll(ctx context.Context) ([]database.UserOut, error) AuthUser(ctx context.Context) (database.UserOut, error) }
Click to show internal directories.
Click to hide internal directories.