mocks

package
v2.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: OSL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) DestroySessionsForUser

func (_m *Store) DestroySessionsForUser(user domain.User) error

DestroySessionsForUser provides a mock function with given fields: user

func (*Store) GetHashByUser

func (_m *Store) GetHashByUser(user domain.User) (string, error)

GetHashByUser provides a mock function with given fields: user

func (*Store) SetHashAndSessionIdForUser

func (_m *Store) SetHashAndSessionIdForUser(user domain.User, hash string, id string) error

SetHashAndSessionIdForUser provides a mock function with given fields: user, hash, id

type Synchronizer

type Synchronizer struct {
	mock.Mock
}

Synchronizer is an autogenerated mock type for the Synchronizer type

func (*Synchronizer) Insert

func (_m *Synchronizer) Insert(user domain.User, session *sessions.Session) error

Insert provides a mock function with given fields: user, session

func (*Synchronizer) IsActive

func (_m *Synchronizer) IsActive(user domain.User, session *sessions.Session) (bool, error)

IsActive provides a mock function with given fields: user, session

type UserServiceInterface

type UserServiceInterface struct {
	mock.Mock
}

UserServiceInterface is an autogenerated mock type for the UserServiceInterface type

func (*UserServiceInterface) GetUser

func (_m *UserServiceInterface) GetUser(ctx context.Context, session *sessions.Session) *domain.User

GetUser provides a mock function with given fields: ctx, session

func (*UserServiceInterface) InitUser

func (_m *UserServiceInterface) InitUser(ctx context.Context, session *sessions.Session) error

InitUser provides a mock function with given fields: ctx, session

func (*UserServiceInterface) IsLoggedIn

func (_m *UserServiceInterface) IsLoggedIn(ctx context.Context, session *sessions.Session) bool

IsLoggedIn provides a mock function with given fields: ctx, session

Jump to

Keyboard shortcuts

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