mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 3 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(ctx http.Context, user interface{}) (string, error)

Login provides a mock function with given fields: ctx, user

func (*Auth) LoginUsingID

func (_m *Auth) LoginUsingID(ctx http.Context, id interface{}) (string, error)

LoginUsingID provides a mock function with given fields: ctx, id

func (*Auth) Logout

func (_m *Auth) Logout(ctx http.Context) error

Logout provides a mock function with given fields: ctx

func (*Auth) Parse

func (_m *Auth) Parse(ctx http.Context, token string) (*auth.Payload, error)

Parse provides a mock function with given fields: ctx, token

func (*Auth) Refresh

func (_m *Auth) Refresh(ctx http.Context) (string, error)

Refresh provides a mock function with given fields: ctx

func (*Auth) User

func (_m *Auth) User(ctx http.Context, user interface{}) error

User provides a mock function with given fields: ctx, user

Jump to

Keyboard shortcuts

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