Documentation ¶
Index ¶
- func GenerateKeyPair() ([]byte, []byte, error)
- type AccountHandler
- func (_m *AccountHandler) GetSessionTokenUser(ctx stk.Context)
- func (_m *AccountHandler) GetSessionUser(ctx stk.Context)
- func (_m *AccountHandler) LoginUserSession(ctx stk.Context)
- func (_m *AccountHandler) LoginUserSessionToken(ctx stk.Context)
- func (_m *AccountHandler) LogoutUser(ctx stk.Context)
- func (_m *AccountHandler) RegisterUser(ctx stk.Context)
- type AccountService
- func (_m *AccountService) GetUserBySessionId(sessionId string) (*entities.Account, error)
- func (_m *AccountService) GetUserBySessionToken(sessionToken string) (*entities.AccountWithToken, error)
- func (_m *AccountService) LoginUserSession(user *entities.Account) (*entities.Session, error)
- func (_m *AccountService) LoginUserSessionToken(user *entities.Account) (string, error)
- func (_m *AccountService) LogoutUserBySessionId(sessionId string) error
- func (_m *AccountService) LogoutUserBySessionToken(sessionToken string) error
- func (_m *AccountService) RegisterUser(user *entities.Account) (*entities.Account, error)
- type AccountStore
- func (_m *AccountStore) GetSessionByID(sessionID string) (*entities.Session, error)
- func (_m *AccountStore) GetUserByEmail(email string) (*entities.Account, error)
- func (_m *AccountStore) GetUserBySessionID(sessionID string) (*entities.Account, error)
- func (_m *AccountStore) GetUserByUserID(email string) (*entities.Account, error)
- func (_m *AccountStore) GetUserByUsername(username string) (*entities.Account, error)
- func (_m *AccountStore) InvalidateSessionByID(sessionID string) error
- func (_m *AccountStore) SaveSession(session *entities.Session) error
- func (_m *AccountStore) SaveUser(user *entities.Account) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
Types ¶
type AccountHandler ¶
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 ¶
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 ¶
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 ¶
RegisterUser provides a mock function with given fields: user
type AccountStore ¶
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