Documentation ¶
Index ¶
- type Authenticator
- type Storage
- func (_m *Storage) ChangePassword(ctx context.Context, userId string, newPassword string) error
- func (_m *Storage) CreateUser(ctx context.Context, id string, name string, password string) error
- func (_m *Storage) DeleteUser(ctx context.Context, userId string) error
- func (_m *Storage) GenerateUserDeletionCode(ctx context.Context, userId string) (string, error)
- func (_m *Storage) UpdateCommonProfileInfoV1(ctx context.Context, userId string, info *models.UserProfileCommonV1) (string, error)
- func (_m *Storage) UserInfoV1(ctx context.Context, id string) (*models.UserInfoV1, error)
- func (_m *Storage) ValidateCredentials(ctx context.Context, userId string, password string) (bool, error)
- func (_m *Storage) ValidateUserDeletionCode(ctx context.Context, userId string, code string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator is an autogenerated mock type for the Authenticator type
func NewAuthenticator ¶
func NewAuthenticator(t interface { mock.TestingT Cleanup(func()) }) *Authenticator
NewAuthenticator creates a new instance of Authenticator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Authenticator) EndAllSessions ¶
func (_m *Authenticator) EndAllSessions(ctx context.Context, userId string) error
EndAllSessions provides a mock function with given fields: ctx, userId
func (*Authenticator) ValidateSession ¶
func (_m *Authenticator) ValidateSession(ctx context.Context, key string, ip string, agent string) (string, error)
ValidateSession provides a mock function with given fields: ctx, key, ip, agent
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Storage) ChangePassword ¶
ChangePassword provides a mock function with given fields: ctx, userId, newPassword
func (*Storage) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, id, name, password
func (*Storage) DeleteUser ¶
DeleteUser provides a mock function with given fields: ctx, userId
func (*Storage) GenerateUserDeletionCode ¶
GenerateUserDeletionCode provides a mock function with given fields: ctx, userId
func (*Storage) UpdateCommonProfileInfoV1 ¶
func (_m *Storage) UpdateCommonProfileInfoV1(ctx context.Context, userId string, info *models.UserProfileCommonV1) (string, error)
UpdateCommonProfileInfoV1 provides a mock function with given fields: ctx, userId, info
func (*Storage) UserInfoV1 ¶
UserInfoV1 provides a mock function with given fields: ctx, id