Documentation ¶
Index ¶
- Variables
- type AuthService
- func (a *AuthService) AddUser(ctx context.Context, email string, password string) (string, error)
- func (a *AuthService) Check(_ context.Context, rawJwt string) (uint64, error)
- func (a *AuthService) Delete(ctx context.Context, rawJwt string) (string, error)
- func (a *AuthService) LoginUser(ctx context.Context, email string, password string) (string, error)
- type IAuthStorage
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongCredentials = myerrors.NewErrorBadContentRequest("Некорректный логин или пароль")
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(authStorage IAuthStorage) (*AuthService, error)
Click to show internal directories.
Click to hide internal directories.