Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Credentials ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler - HTTP auth handler.
func NewHandler ¶
NewHandler - a factory function of auth handler.
type Repository ¶
type Repository interface {
// contains filtered or unexported methods
}
Repository - auth store APIs.
func NewRepository ¶
func NewRepository(db *sqlx.DB, rs *redis.Storage) Repository
NewRepository is a factory function of auth store.
type UseCase ¶
type UseCase interface {
// contains filtered or unexported methods
}
UseCase - auth usecase APIs.
func NewUseCase ¶
func NewUseCase(repo Repository) UseCase
NewUseCase is a factory function of auth usecase.
Click to show internal directories.
Click to hide internal directories.