mocks

package
v0.0.0-...-6c79d6b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore struct {
	mock.Mock
}

Datastore is an autogenerated mock type for the Datastore type

func (*Datastore) CreateSession

func (_m *Datastore) CreateSession(session *models.Session) (*models.Session, error)

CreateSession provides a mock function with given fields: session

func (*Datastore) CreateUser

func (_m *Datastore) CreateUser(user *models.User) (*models.User, error)

CreateUser provides a mock function with given fields: user

func (*Datastore) DeleteSession

func (_m *Datastore) DeleteSession(id string) error

DeleteSession provides a mock function with given fields: id

func (*Datastore) GetSession

func (_m *Datastore) GetSession(id string, owner string) (*models.Session, error)

GetSession provides a mock function with given fields: id, owner

func (*Datastore) GetSessions

func (_m *Datastore) GetSessions(owner string, filter string) ([]*models.Session, error)

GetSessions provides a mock function with given fields: owner, filter

func (*Datastore) GetUser

func (_m *Datastore) GetUser(id string) (*models.User, error)

GetUser provides a mock function with given fields: id

func (*Datastore) GetUserByEmail

func (_m *Datastore) GetUserByEmail(email string) (*models.User, error)

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

type Encryptor struct {
	mock.Mock
}

Encryptor is an autogenerated mock type for the Encryptor type

func (*Encryptor) ComparePasscode

func (_m *Encryptor) ComparePasscode(passcode string, hashedPasscode string) bool

ComparePasscode provides a mock function with given fields: passcode, hashedPasscode

func (*Encryptor) HashPassword

func (_m *Encryptor) HashPassword(password string) (string, error)

HashPassword provides a mock function with given fields: password

type Idgenerator

type Idgenerator struct {
	mock.Mock
}

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

type TokenHandler struct {
	mock.Mock
}

TokenHandler is an autogenerated mock type for the TokenHandler type

func (*TokenHandler) NewToken

func (_m *TokenHandler) NewToken(userId string, expirationTime time.Time) (string, error)

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

Jump to

Keyboard shortcuts

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