auth

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Auth) EXPECT

func (_m *Auth) EXPECT() *Auth_Expecter

func (*Auth) Guard

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

Guard provides a mock function with given fields: name

func (*Auth) Id

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

Id provides a mock function with given fields:

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) (*auth.Payload, 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

type Auth_Expecter

type Auth_Expecter struct {
	// contains filtered or unexported fields
}

func (*Auth_Expecter) Guard

func (_e *Auth_Expecter) Guard(name interface{}) *Auth_Guard_Call

Guard is a helper method to define mock.On call

  • name string

func (*Auth_Expecter) Id

func (_e *Auth_Expecter) Id() *Auth_Id_Call

Id is a helper method to define mock.On call

func (*Auth_Expecter) Login

func (_e *Auth_Expecter) Login(user interface{}) *Auth_Login_Call

Login is a helper method to define mock.On call

  • user interface{}

func (*Auth_Expecter) LoginUsingID

func (_e *Auth_Expecter) LoginUsingID(id interface{}) *Auth_LoginUsingID_Call

LoginUsingID is a helper method to define mock.On call

  • id interface{}

func (*Auth_Expecter) Logout

func (_e *Auth_Expecter) Logout() *Auth_Logout_Call

Logout is a helper method to define mock.On call

func (*Auth_Expecter) Parse

func (_e *Auth_Expecter) Parse(token interface{}) *Auth_Parse_Call

Parse is a helper method to define mock.On call

  • token string

func (*Auth_Expecter) Refresh

func (_e *Auth_Expecter) Refresh() *Auth_Refresh_Call

Refresh is a helper method to define mock.On call

func (*Auth_Expecter) User

func (_e *Auth_Expecter) User(user interface{}) *Auth_User_Call

User is a helper method to define mock.On call

  • user interface{}

type Auth_Guard_Call

type Auth_Guard_Call struct {
	*mock.Call
}

Auth_Guard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Guard'

func (*Auth_Guard_Call) Return

func (_c *Auth_Guard_Call) Return(_a0 auth.Auth) *Auth_Guard_Call

func (*Auth_Guard_Call) Run

func (_c *Auth_Guard_Call) Run(run func(name string)) *Auth_Guard_Call

func (*Auth_Guard_Call) RunAndReturn

func (_c *Auth_Guard_Call) RunAndReturn(run func(string) auth.Auth) *Auth_Guard_Call

type Auth_Id_Call

type Auth_Id_Call struct {
	*mock.Call
}

Auth_Id_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Id'

func (*Auth_Id_Call) Return

func (_c *Auth_Id_Call) Return(_a0 string, _a1 error) *Auth_Id_Call

func (*Auth_Id_Call) Run

func (_c *Auth_Id_Call) Run(run func()) *Auth_Id_Call

func (*Auth_Id_Call) RunAndReturn

func (_c *Auth_Id_Call) RunAndReturn(run func() (string, error)) *Auth_Id_Call

type Auth_LoginUsingID_Call

type Auth_LoginUsingID_Call struct {
	*mock.Call
}

Auth_LoginUsingID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoginUsingID'

func (*Auth_LoginUsingID_Call) Return

func (*Auth_LoginUsingID_Call) Run

func (_c *Auth_LoginUsingID_Call) Run(run func(id interface{})) *Auth_LoginUsingID_Call

func (*Auth_LoginUsingID_Call) RunAndReturn

func (_c *Auth_LoginUsingID_Call) RunAndReturn(run func(interface{}) (string, error)) *Auth_LoginUsingID_Call

type Auth_Login_Call

type Auth_Login_Call struct {
	*mock.Call
}

Auth_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'

func (*Auth_Login_Call) Return

func (_c *Auth_Login_Call) Return(token string, err error) *Auth_Login_Call

func (*Auth_Login_Call) Run

func (_c *Auth_Login_Call) Run(run func(user interface{})) *Auth_Login_Call

func (*Auth_Login_Call) RunAndReturn

func (_c *Auth_Login_Call) RunAndReturn(run func(interface{}) (string, error)) *Auth_Login_Call

type Auth_Logout_Call

type Auth_Logout_Call struct {
	*mock.Call
}

Auth_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'

func (*Auth_Logout_Call) Return

func (_c *Auth_Logout_Call) Return(_a0 error) *Auth_Logout_Call

func (*Auth_Logout_Call) Run

func (_c *Auth_Logout_Call) Run(run func()) *Auth_Logout_Call

func (*Auth_Logout_Call) RunAndReturn

func (_c *Auth_Logout_Call) RunAndReturn(run func() error) *Auth_Logout_Call

type Auth_Parse_Call

type Auth_Parse_Call struct {
	*mock.Call
}

Auth_Parse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parse'

func (*Auth_Parse_Call) Return

func (_c *Auth_Parse_Call) Return(_a0 *auth.Payload, _a1 error) *Auth_Parse_Call

func (*Auth_Parse_Call) Run

func (_c *Auth_Parse_Call) Run(run func(token string)) *Auth_Parse_Call

func (*Auth_Parse_Call) RunAndReturn

func (_c *Auth_Parse_Call) RunAndReturn(run func(string) (*auth.Payload, error)) *Auth_Parse_Call

type Auth_Refresh_Call

type Auth_Refresh_Call struct {
	*mock.Call
}

Auth_Refresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Refresh'

func (*Auth_Refresh_Call) Return

func (_c *Auth_Refresh_Call) Return(token string, err error) *Auth_Refresh_Call

func (*Auth_Refresh_Call) Run

func (_c *Auth_Refresh_Call) Run(run func()) *Auth_Refresh_Call

func (*Auth_Refresh_Call) RunAndReturn

func (_c *Auth_Refresh_Call) RunAndReturn(run func() (string, error)) *Auth_Refresh_Call

type Auth_User_Call

type Auth_User_Call struct {
	*mock.Call
}

Auth_User_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'User'

func (*Auth_User_Call) Return

func (_c *Auth_User_Call) Return(_a0 error) *Auth_User_Call

func (*Auth_User_Call) Run

func (_c *Auth_User_Call) Run(run func(user interface{})) *Auth_User_Call

func (*Auth_User_Call) RunAndReturn

func (_c *Auth_User_Call) RunAndReturn(run func(interface{}) error) *Auth_User_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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