Documentation ¶
Index ¶
- type CommonAuthRepository
- func (repo *CommonAuthRepository) CreateRefreshToken(userID uint64, refreshToken string, ttl time.Duration) (uint64, error)
- func (repo *CommonAuthRepository) ExpireRefreshToken(refreshToken string) error
- func (repo *CommonAuthRepository) GetRefreshTokenByUserID(userID uint64) (*entities.RefreshToken, error)
- func (repo *CommonAuthRepository) RegisterUser(userData entities.RegisterUserDTO) (uint64, error)
- type CommonUsersRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonAuthRepository ¶
type CommonAuthRepository struct {
// contains filtered or unexported fields
}
func NewCommonAuthRepository ¶ added in v1.0.1
func NewCommonAuthRepository(dbConnector db.Connector) *CommonAuthRepository
func (*CommonAuthRepository) CreateRefreshToken ¶ added in v0.1.0
func (*CommonAuthRepository) ExpireRefreshToken ¶ added in v0.1.0
func (repo *CommonAuthRepository) ExpireRefreshToken(refreshToken string) error
func (*CommonAuthRepository) GetRefreshTokenByUserID ¶ added in v0.1.0
func (repo *CommonAuthRepository) GetRefreshTokenByUserID(userID uint64) (*entities.RefreshToken, error)
func (*CommonAuthRepository) RegisterUser ¶
func (repo *CommonAuthRepository) RegisterUser(userData entities.RegisterUserDTO) (uint64, error)
type CommonUsersRepository ¶
type CommonUsersRepository struct {
// contains filtered or unexported fields
}
func NewCommonUsersRepository ¶ added in v1.0.1
func NewCommonUsersRepository(dbConnector db.Connector) *CommonUsersRepository
func (*CommonUsersRepository) GetAllUsers ¶
func (repo *CommonUsersRepository) GetAllUsers() ([]entities.User, error)
func (*CommonUsersRepository) GetUserByEmail ¶
func (repo *CommonUsersRepository) GetUserByEmail(email string) (*entities.User, error)
func (*CommonUsersRepository) GetUserByID ¶
func (repo *CommonUsersRepository) GetUserByID(id uint64) (*entities.User, error)
Click to show internal directories.
Click to hide internal directories.