mocks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	mock.Mock
}

Auth is an autogenerated mock type for the Auth type

func NewAuth

func NewAuth(t mockConstructorTestingTNewAuth) *Auth

NewAuth creates a new instance of Auth. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Auth) Guard

func (_m *Auth) Guard(name string) auth.Auth

Guard provides a mock function with given fields: name

func (*Auth) Login

func (_m *Auth) Login(user interface{}) (string, error)

Login provides a mock function with given fields: user

func (*Auth) LoginUsingID

func (_m *Auth) LoginUsingID(id interface{}) (string, error)

LoginUsingID provides a mock function with given fields: id

func (*Auth) Logout

func (_m *Auth) Logout() error

Logout provides a mock function with given fields:

func (*Auth) Parse

func (_m *Auth) Parse(token string) error

Parse provides a mock function with given fields: token

func (*Auth) Refresh

func (_m *Auth) Refresh() (string, error)

Refresh provides a mock function with given fields:

func (*Auth) User

func (_m *Auth) User(user interface{}) error

User provides a mock function with given fields: user

Jump to

Keyboard shortcuts

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