Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth
func (*Auth) CreateAccount ¶
func (r *Auth) CreateAccount(input domain.SignUpInput) error
CreateAccount
func (*Auth) GetAccountById ¶
GetAccount
type Auther ¶
type Auther interface {
CreateAccount(account domain.SignUpInput) error
GetAccountById(id int) (domain.Account, error)
GetByCredentials(email, password string) (domain.Account, error)
}
Auther - auth repository interface
type Repository ¶
type Repository struct {
Auther
}
func NewRepository ¶
func NewRepository(db *bun.DB) *Repository
Click to show internal directories.
Click to hide internal directories.