Documentation ¶
Index ¶
- func NewTokenRepository(ioc di.Container) entity.TokenRepository
- func NewUserRepository(ioc di.Container) entity.UserRepository
- type Repository
- type TokenRepository
- type UserRepository
- func (u UserRepository) All() (users []*entity.User, err error)
- func (u UserRepository) ChangePassword(id uuid.UUID, password string) (*entity.User, error)
- func (u UserRepository) Create(user *entity.User) (*entity.User, error)
- func (u UserRepository) FindByEmail(email string) (*entity.User, error)
- func (u UserRepository) FindByID(id uuid.UUID) (*entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTokenRepository ¶
func NewTokenRepository(ioc di.Container) entity.TokenRepository
NewTokenRepository func
func NewUserRepository ¶
func NewUserRepository(ioc di.Container) entity.UserRepository
NewUserRepository func
Types ¶
type Repository ¶
type Repository struct { User entity.UserRepository Token entity.TokenRepository }
Repository struct
type TokenRepository ¶
type TokenRepository struct {
// contains filtered or unexported fields
}
TokenRepository struct
func (TokenRepository) FindByToken ¶
func (u TokenRepository) FindByToken(token string) (*entity.Token, error)
FindByToken func
func (TokenRepository) FindByUserID ¶
FindByUserID func
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
UserRepository struct
func (UserRepository) All ¶
func (u UserRepository) All() (users []*entity.User, err error)
All func
func (UserRepository) ChangePassword ¶
ChangePassword func
func (UserRepository) FindByEmail ¶
func (u UserRepository) FindByEmail(email string) (*entity.User, error)
FindByEmail func
Click to show internal directories.
Click to hide internal directories.