repositories

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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 (repo *CommonAuthRepository) CreateRefreshToken(
	userID uint64,
	refreshToken string,
	ttl time.Duration,
) (uint64, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL