mocks

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 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 MockedSsoRepository

type MockedSsoRepository struct {
	UsersStorage         map[uint64]*entities.User
	RefreshTokensStorage map[uint64]*entities.RefreshToken
}

func (*MockedSsoRepository) CreateRefreshToken

func (repo *MockedSsoRepository) CreateRefreshToken(
	userID uint64,
	refreshToken string,
	ttl time.Duration,
) (uint64, error)

func (*MockedSsoRepository) ExpireRefreshToken

func (repo *MockedSsoRepository) ExpireRefreshToken(refreshToken string) error

func (*MockedSsoRepository) GetAllUsers

func (repo *MockedSsoRepository) GetAllUsers() ([]entities.User, error)

func (*MockedSsoRepository) GetRefreshTokenByUserID

func (repo *MockedSsoRepository) GetRefreshTokenByUserID(userID uint64) (*entities.RefreshToken, error)

func (*MockedSsoRepository) GetUserByEmail

func (repo *MockedSsoRepository) GetUserByEmail(email string) (*entities.User, error)

func (*MockedSsoRepository) GetUserByID

func (repo *MockedSsoRepository) GetUserByID(id uint64) (*entities.User, error)

func (*MockedSsoRepository) RegisterUser

func (repo *MockedSsoRepository) RegisterUser(userData entities.RegisterUserDTO) (uint64, error)

Jump to

Keyboard shortcuts

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