mocks

package
v0.0.0-...-10d5746 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: AGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) GetUserByEmail

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

GetUserByEmail provides a mock function with given fields: email

func (*Repository) GetUserByID

func (_m *Repository) GetUserByID(id int64) (*models.User, error)

GetUserByID provides a mock function with given fields: id

type Sessions

type Sessions struct {
	mock.Mock
}

Sessions is an autogenerated mock type for the Sessions type

func (*Sessions) Add

func (_m *Sessions) Add(userId int64) (string, error)

Add provides a mock function with given fields: userId

func (*Sessions) Close

func (_m *Sessions) Close() error

Close provides a mock function with given fields:

func (*Sessions) Delete

func (_m *Sessions) Delete(sessionToken string) error

Delete provides a mock function with given fields: sessionToken

func (*Sessions) Get

func (_m *Sessions) Get(sessionToken string) (int64, error)

Get provides a mock function with given fields: sessionToken

func (*Sessions) Set

func (_m *Sessions) Set(sessionToken string, userId int64) error

Set provides a mock function with given fields: sessionToken, userId

type Sso

type Sso struct {
	mock.Mock
}

Sso is an autogenerated mock type for the Sso type

func (*Sso) ValidateTicket

func (_m *Sso) ValidateTicket(ticket string) (string, error)

ValidateTicket provides a mock function with given fields: ticket

Jump to

Keyboard shortcuts

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