Documentation ¶
Index ¶
- type Datastore
- func (_m *Datastore) CreateSession(session *models.Session) (*models.Session, error)
- func (_m *Datastore) CreateUser(user *models.User) (*models.User, error)
- func (_m *Datastore) DeleteSession(id string) error
- func (_m *Datastore) GetSession(id string, owner string) (*models.Session, error)
- func (_m *Datastore) GetSessions(owner string, filter string) ([]*models.Session, error)
- func (_m *Datastore) GetUser(id string) (*models.User, error)
- func (_m *Datastore) GetUserByEmail(email string) (*models.User, error)
- func (_m *Datastore) UpdateSession(id string, info models.SessionInfo) error
- type Encryptor
- type Idgenerator
- type TokenHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
Datastore is an autogenerated mock type for the Datastore type
func (*Datastore) CreateSession ¶
CreateSession provides a mock function with given fields: session
func (*Datastore) CreateUser ¶
CreateUser provides a mock function with given fields: user
func (*Datastore) DeleteSession ¶
DeleteSession provides a mock function with given fields: id
func (*Datastore) GetSession ¶
GetSession provides a mock function with given fields: id, owner
func (*Datastore) GetSessions ¶
GetSessions provides a mock function with given fields: owner, filter
func (*Datastore) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: email
func (*Datastore) UpdateSession ¶
func (_m *Datastore) UpdateSession(id string, info models.SessionInfo) error
UpdateSession provides a mock function with given fields: id, info
type Encryptor ¶
Encryptor is an autogenerated mock type for the Encryptor type
func (*Encryptor) ComparePasscode ¶
ComparePasscode provides a mock function with given fields: passcode, hashedPasscode
type Idgenerator ¶
Idgenerator is an autogenerated mock type for the Idgenerator type
func (*Idgenerator) Generate ¶
func (_m *Idgenerator) Generate() string
Generate provides a mock function with given fields:
type TokenHandler ¶
TokenHandler is an autogenerated mock type for the TokenHandler type
func (*TokenHandler) NewToken ¶
NewToken provides a mock function with given fields: userId, expirationTime
func (*TokenHandler) ValidateToken ¶
func (_m *TokenHandler) ValidateToken(token string) (*tokenhandler.Claims, error)
ValidateToken provides a mock function with given fields: token