mocks

package
v0.0.0-...-74c685c Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	mock.Mock
}

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

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

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

func (_m *Storage) ChangePassword(ctx context.Context, userId string, newPassword string) error

ChangePassword provides a mock function with given fields: ctx, userId, newPassword

func (*Storage) CreateUser

func (_m *Storage) CreateUser(ctx context.Context, id string, name string, password string) error

CreateUser provides a mock function with given fields: ctx, id, name, password

func (*Storage) DeleteUser

func (_m *Storage) DeleteUser(ctx context.Context, userId string) error

DeleteUser provides a mock function with given fields: ctx, userId

func (*Storage) GenerateUserDeletionCode

func (_m *Storage) GenerateUserDeletionCode(ctx context.Context, userId string) (string, error)

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

func (_m *Storage) UserInfoV1(ctx context.Context, id string) (*models.UserInfoV1, error)

UserInfoV1 provides a mock function with given fields: ctx, id

func (*Storage) ValidateCredentials

func (_m *Storage) ValidateCredentials(ctx context.Context, userId string, password string) (bool, error)

ValidateCredentials provides a mock function with given fields: ctx, userId, password

func (*Storage) ValidateUserDeletionCode

func (_m *Storage) ValidateUserDeletionCode(ctx context.Context, userId string, code string) (bool, error)

ValidateUserDeletionCode provides a mock function with given fields: ctx, userId, code

Jump to

Keyboard shortcuts

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