Documentation ¶
Index ¶
- type AuditClient
- type PasswordHasher
- type SessionsRepository
- type Users
- func (s *Users) ParseToken(ctx context.Context, token string) (int64, error)
- func (s *Users) RefreshTokens(ctx context.Context, refreshToken string) (string, string, error)
- func (s *Users) SignIn(ctx context.Context, inp domain.SignInInput) (string, string, error)
- func (s *Users) SignUp(ctx context.Context, inp domain.SignUpInput) error
- type UsersRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditClient ¶
type PasswordHasher ¶
PasswordHasher provides hashing logic to securely store passwords.
type SessionsRepository ¶
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func NewUsers ¶
func NewUsers(repo UsersRepository, sessionsRepo SessionsRepository, auditClient AuditClient, hasher PasswordHasher, secret []byte) *Users
func (*Users) ParseToken ¶
func (*Users) RefreshTokens ¶
Click to show internal directories.
Click to hide internal directories.