Documentation ¶
Index ¶
- type MockedSsoRepository
- func (repo *MockedSsoRepository) CreateRefreshToken(userID uint64, refreshToken string, ttl time.Duration) (uint64, error)
- func (repo *MockedSsoRepository) ExpireRefreshToken(refreshToken string) error
- func (repo *MockedSsoRepository) GetAllUsers() ([]entities.User, error)
- func (repo *MockedSsoRepository) GetRefreshTokenByUserID(userID uint64) (*entities.RefreshToken, error)
- func (repo *MockedSsoRepository) GetUserByEmail(email string) (*entities.User, error)
- func (repo *MockedSsoRepository) GetUserByID(id uint64) (*entities.User, error)
- func (repo *MockedSsoRepository) RegisterUser(userData entities.RegisterUserDTO) (uint64, error)
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 (*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)
Click to show internal directories.
Click to hide internal directories.