Documentation ¶
Index ¶
- type CommonAuthRepository
- func (repo *CommonAuthRepository) Close() error
- func (repo *CommonAuthRepository) CreateRefreshToken(ctx context.Context, userID uint64, refreshToken string, ttl time.Duration) (uint64, error)
- func (repo *CommonAuthRepository) ExpireRefreshToken(ctx context.Context, refreshToken string) error
- func (repo *CommonAuthRepository) GetRefreshTokenByUserID(ctx context.Context, userID uint64) (*entities.RefreshToken, error)
- func (repo *CommonAuthRepository) RegisterUser(ctx context.Context, userData entities.RegisterUserDTO) (uint64, error)
- type CommonUsersRepository
- func (repo *CommonUsersRepository) Close() error
- func (repo *CommonUsersRepository) GetAllUsers(ctx context.Context) ([]entities.User, error)
- func (repo *CommonUsersRepository) GetUserByEmail(ctx context.Context, email string) (*entities.User, error)
- func (repo *CommonUsersRepository) GetUserByID(ctx context.Context, id uint64) (*entities.User, error)
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, logger *slog.Logger, ) *CommonAuthRepository
func (*CommonAuthRepository) Close ¶ added in v1.0.8
func (repo *CommonAuthRepository) Close() error
func (*CommonAuthRepository) CreateRefreshToken ¶ added in v0.1.0
func (*CommonAuthRepository) ExpireRefreshToken ¶ added in v0.1.0
func (repo *CommonAuthRepository) ExpireRefreshToken(ctx context.Context, refreshToken string) error
func (*CommonAuthRepository) GetRefreshTokenByUserID ¶ added in v0.1.0
func (repo *CommonAuthRepository) GetRefreshTokenByUserID( ctx context.Context, userID uint64, ) (*entities.RefreshToken, error)
func (*CommonAuthRepository) RegisterUser ¶
func (repo *CommonAuthRepository) RegisterUser(ctx context.Context, 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, logger *slog.Logger, ) *CommonUsersRepository
func (*CommonUsersRepository) Close ¶ added in v1.0.8
func (repo *CommonUsersRepository) Close() error
func (*CommonUsersRepository) GetAllUsers ¶
func (*CommonUsersRepository) GetUserByEmail ¶
func (*CommonUsersRepository) GetUserByID ¶
Click to show internal directories.
Click to hide internal directories.