mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair() ([]byte, []byte, error)

Types

type AccountHandler

type AccountHandler struct {
	mock.Mock
}

AccountHandler is an autogenerated mock type for the AccountHandler type

func NewAccountHandler

func NewAccountHandler(t mockConstructorTestingTNewAccountHandler) *AccountHandler

NewAccountHandler creates a new instance of AccountHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AccountHandler) GetSessionTokenUser

func (_m *AccountHandler) GetSessionTokenUser(ctx stk.Context)

GetSessionTokenUser provides a mock function with given fields: ctx

func (*AccountHandler) GetSessionUser

func (_m *AccountHandler) GetSessionUser(ctx stk.Context)

GetSessionUser provides a mock function with given fields: ctx

func (*AccountHandler) LoginUserSession

func (_m *AccountHandler) LoginUserSession(ctx stk.Context)

LoginUserSession provides a mock function with given fields: ctx

func (*AccountHandler) LoginUserSessionToken

func (_m *AccountHandler) LoginUserSessionToken(ctx stk.Context)

LoginUserSessionToken provides a mock function with given fields: ctx

func (*AccountHandler) LogoutUser

func (_m *AccountHandler) LogoutUser(ctx stk.Context)

LogoutUser provides a mock function with given fields: ctx

func (*AccountHandler) RegisterUser

func (_m *AccountHandler) RegisterUser(ctx stk.Context)

RegisterUser provides a mock function with given fields: ctx

type AccountService

type AccountService struct {
	mock.Mock
}

AccountService is an autogenerated mock type for the AccountService type

func NewAccountService

func NewAccountService(t mockConstructorTestingTNewAccountService) *AccountService

NewAccountService creates a new instance of AccountService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AccountService) GetUserBySessionId

func (_m *AccountService) GetUserBySessionId(sessionId string) (*entities.Account, error)

GetUserBySessionId provides a mock function with given fields: sessionId

func (*AccountService) GetUserBySessionToken

func (_m *AccountService) GetUserBySessionToken(sessionToken string) (*entities.AccountWithToken, error)

GetUserBySessionToken provides a mock function with given fields: sessionToken

func (*AccountService) LoginUserSession

func (_m *AccountService) LoginUserSession(user *entities.Account) (*entities.Session, error)

LoginUserSession provides a mock function with given fields: user

func (*AccountService) LoginUserSessionToken

func (_m *AccountService) LoginUserSessionToken(user *entities.Account) (string, error)

LoginUserSessionToken provides a mock function with given fields: user

func (*AccountService) LogoutUserBySessionId

func (_m *AccountService) LogoutUserBySessionId(sessionId string) error

LogoutUserBySessionId provides a mock function with given fields: sessionId

func (*AccountService) LogoutUserBySessionToken

func (_m *AccountService) LogoutUserBySessionToken(sessionToken string) error

LogoutUserBySessionToken provides a mock function with given fields: sessionToken

func (*AccountService) RegisterUser

func (_m *AccountService) RegisterUser(user *entities.Account) (*entities.Account, error)

RegisterUser provides a mock function with given fields: user

type AccountStore

type AccountStore struct {
	mock.Mock
}

AccountStore is an autogenerated mock type for the AccountStore type

func NewAccountStore

func NewAccountStore(t mockConstructorTestingTNewAccountStore) *AccountStore

NewAccountStore creates a new instance of AccountStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AccountStore) GetSessionByID

func (_m *AccountStore) GetSessionByID(sessionID string) (*entities.Session, error)

GetSessionByID provides a mock function with given fields: sessionID

func (*AccountStore) GetUserByEmail

func (_m *AccountStore) GetUserByEmail(email string) (*entities.Account, error)

GetUserByEmail provides a mock function with given fields: email

func (*AccountStore) GetUserBySessionID

func (_m *AccountStore) GetUserBySessionID(sessionID string) (*entities.Account, error)

GetUserBySessionID provides a mock function with given fields: sessionID

func (*AccountStore) GetUserByUserID

func (_m *AccountStore) GetUserByUserID(email string) (*entities.Account, error)

GetUserByUserID provides a mock function with given fields: email

func (*AccountStore) GetUserByUsername

func (_m *AccountStore) GetUserByUsername(username string) (*entities.Account, error)

GetUserByUsername provides a mock function with given fields: username

func (*AccountStore) InvalidateSessionByID

func (_m *AccountStore) InvalidateSessionByID(sessionID string) error

InvalidateSessionByID provides a mock function with given fields: sessionID

func (*AccountStore) SaveSession

func (_m *AccountStore) SaveSession(session *entities.Session) error

SaveSession provides a mock function with given fields: session

func (*AccountStore) SaveUser

func (_m *AccountStore) SaveUser(user *entities.Account) error

SaveUser provides a mock function with given fields: user

Jump to

Keyboard shortcuts

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