Documentation
¶
Index ¶
- type Auth
- func (_m *Auth) Check() bool
- func (_m *Auth) EXPECT() *Auth_Expecter
- func (_m *Auth) Extend(name string, fn auth.GuardFunc)
- func (_m *Auth) Guard(name string) auth.GuardDriver
- func (_m *Auth) Guest() bool
- func (_m *Auth) ID() (string, error)
- func (_m *Auth) Login(user interface{}) (string, error)
- func (_m *Auth) LoginUsingID(id interface{}) (string, error)
- func (_m *Auth) Logout() error
- func (_m *Auth) Parse(token string) (*auth.Payload, error)
- func (_m *Auth) Provider(name string, fn auth.UserProviderFunc)
- func (_m *Auth) Refresh() (string, error)
- func (_m *Auth) User(user interface{}) error
- type Auth_Check_Call
- type Auth_Expecter
- func (_e *Auth_Expecter) Check() *Auth_Check_Call
- func (_e *Auth_Expecter) Extend(name interface{}, fn interface{}) *Auth_Extend_Call
- func (_e *Auth_Expecter) Guard(name interface{}) *Auth_Guard_Call
- func (_e *Auth_Expecter) Guest() *Auth_Guest_Call
- func (_e *Auth_Expecter) ID() *Auth_ID_Call
- func (_e *Auth_Expecter) Login(user interface{}) *Auth_Login_Call
- func (_e *Auth_Expecter) LoginUsingID(id interface{}) *Auth_LoginUsingID_Call
- func (_e *Auth_Expecter) Logout() *Auth_Logout_Call
- func (_e *Auth_Expecter) Parse(token interface{}) *Auth_Parse_Call
- func (_e *Auth_Expecter) Provider(name interface{}, fn interface{}) *Auth_Provider_Call
- func (_e *Auth_Expecter) Refresh() *Auth_Refresh_Call
- func (_e *Auth_Expecter) User(user interface{}) *Auth_User_Call
- type Auth_Extend_Call
- type Auth_Guard_Call
- type Auth_Guest_Call
- type Auth_ID_Call
- type Auth_LoginUsingID_Call
- type Auth_Login_Call
- type Auth_Logout_Call
- type Auth_Parse_Call
- type Auth_Provider_Call
- type Auth_Refresh_Call
- type Auth_User_Call
- type GuardDriver
- func (_m *GuardDriver) Check() bool
- func (_m *GuardDriver) EXPECT() *GuardDriver_Expecter
- func (_m *GuardDriver) Guest() bool
- func (_m *GuardDriver) ID() (string, error)
- func (_m *GuardDriver) Login(user interface{}) (string, error)
- func (_m *GuardDriver) LoginUsingID(id interface{}) (string, error)
- func (_m *GuardDriver) Logout() error
- func (_m *GuardDriver) Parse(token string) (*auth.Payload, error)
- func (_m *GuardDriver) Refresh() (string, error)
- func (_m *GuardDriver) User(user interface{}) error
- type GuardDriver_Check_Call
- type GuardDriver_Expecter
- func (_e *GuardDriver_Expecter) Check() *GuardDriver_Check_Call
- func (_e *GuardDriver_Expecter) Guest() *GuardDriver_Guest_Call
- func (_e *GuardDriver_Expecter) ID() *GuardDriver_ID_Call
- func (_e *GuardDriver_Expecter) Login(user interface{}) *GuardDriver_Login_Call
- func (_e *GuardDriver_Expecter) LoginUsingID(id interface{}) *GuardDriver_LoginUsingID_Call
- func (_e *GuardDriver_Expecter) Logout() *GuardDriver_Logout_Call
- func (_e *GuardDriver_Expecter) Parse(token interface{}) *GuardDriver_Parse_Call
- func (_e *GuardDriver_Expecter) Refresh() *GuardDriver_Refresh_Call
- func (_e *GuardDriver_Expecter) User(user interface{}) *GuardDriver_User_Call
- type GuardDriver_Guest_Call
- type GuardDriver_ID_Call
- type GuardDriver_LoginUsingID_Call
- func (_c *GuardDriver_LoginUsingID_Call) Return(token string, err error) *GuardDriver_LoginUsingID_Call
- func (_c *GuardDriver_LoginUsingID_Call) Run(run func(id interface{})) *GuardDriver_LoginUsingID_Call
- func (_c *GuardDriver_LoginUsingID_Call) RunAndReturn(run func(interface{}) (string, error)) *GuardDriver_LoginUsingID_Call
- type GuardDriver_Login_Call
- type GuardDriver_Logout_Call
- type GuardDriver_Parse_Call
- type GuardDriver_Refresh_Call
- type GuardDriver_User_Call
- type GuardFunc
- type GuardFunc_Execute_Call
- func (_c *GuardFunc_Execute_Call) Return(_a0 auth.GuardDriver, _a1 error) *GuardFunc_Execute_Call
- func (_c *GuardFunc_Execute_Call) Run(run func(ctx http.Context, name string, userProvider auth.UserProvider)) *GuardFunc_Execute_Call
- func (_c *GuardFunc_Execute_Call) RunAndReturn(run func(http.Context, string, auth.UserProvider) (auth.GuardDriver, error)) *GuardFunc_Execute_Call
- type GuardFunc_Expecter
- type UserProvider
- type UserProviderFunc
- type UserProviderFunc_Execute_Call
- func (_c *UserProviderFunc_Execute_Call) Return(_a0 auth.UserProvider, _a1 error) *UserProviderFunc_Execute_Call
- func (_c *UserProviderFunc_Execute_Call) Run(run func(ctx http.Context)) *UserProviderFunc_Execute_Call
- func (_c *UserProviderFunc_Execute_Call) RunAndReturn(run func(http.Context) (auth.UserProvider, error)) *UserProviderFunc_Execute_Call
- type UserProviderFunc_Expecter
- type UserProvider_Expecter
- type UserProvider_GetID_Call
- func (_c *UserProvider_GetID_Call) Return(_a0 interface{}, _a1 error) *UserProvider_GetID_Call
- func (_c *UserProvider_GetID_Call) Run(run func(user interface{})) *UserProvider_GetID_Call
- func (_c *UserProvider_GetID_Call) RunAndReturn(run func(interface{}) (interface{}, error)) *UserProvider_GetID_Call
- type UserProvider_RetriveByID_Call
- func (_c *UserProvider_RetriveByID_Call) Return(_a0 error) *UserProvider_RetriveByID_Call
- func (_c *UserProvider_RetriveByID_Call) Run(run func(user interface{}, id interface{})) *UserProvider_RetriveByID_Call
- func (_c *UserProvider_RetriveByID_Call) RunAndReturn(run func(interface{}, interface{}) error) *UserProvider_RetriveByID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
Auth is an autogenerated mock type for the Auth type
func NewAuth ¶
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.GuardDriver
Guard provides a mock function with given fields: name
func (*Auth) LoginUsingID ¶
LoginUsingID provides a mock function with given fields: id
func (*Auth) Provider ¶ added in v1.15.12
func (_m *Auth) Provider(name string, fn auth.UserProviderFunc)
Provider provides a mock function with given fields: name, fn
type Auth_Check_Call ¶ added in v1.15.12
Auth_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*Auth_Check_Call) Return ¶ added in v1.15.12
func (_c *Auth_Check_Call) Return(_a0 bool) *Auth_Check_Call
func (*Auth_Check_Call) Run ¶ added in v1.15.12
func (_c *Auth_Check_Call) Run(run func()) *Auth_Check_Call
func (*Auth_Check_Call) RunAndReturn ¶ added in v1.15.12
func (_c *Auth_Check_Call) RunAndReturn(run func() bool) *Auth_Check_Call
type Auth_Expecter ¶
type Auth_Expecter struct {
// contains filtered or unexported fields
}
func (*Auth_Expecter) Check ¶ added in v1.15.12
func (_e *Auth_Expecter) Check() *Auth_Check_Call
Check is a helper method to define mock.On call
func (*Auth_Expecter) Extend ¶ added in v1.15.12
func (_e *Auth_Expecter) Extend(name interface{}, fn interface{}) *Auth_Extend_Call
Extend is a helper method to define mock.On call
- name string
- fn auth.GuardFunc
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) Guest ¶ added in v1.15.12
func (_e *Auth_Expecter) Guest() *Auth_Guest_Call
Guest is a helper method to define mock.On call
func (*Auth_Expecter) ID ¶ added in v1.15.0
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) Provider ¶ added in v1.15.12
func (_e *Auth_Expecter) Provider(name interface{}, fn interface{}) *Auth_Provider_Call
Provider is a helper method to define mock.On call
- name string
- fn auth.UserProviderFunc
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_Extend_Call ¶ added in v1.15.12
Auth_Extend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extend'
func (*Auth_Extend_Call) Return ¶ added in v1.15.12
func (_c *Auth_Extend_Call) Return() *Auth_Extend_Call
func (*Auth_Extend_Call) Run ¶ added in v1.15.12
func (_c *Auth_Extend_Call) Run(run func(name string, fn auth.GuardFunc)) *Auth_Extend_Call
func (*Auth_Extend_Call) RunAndReturn ¶ added in v1.15.12
func (_c *Auth_Extend_Call) RunAndReturn(run func(string, auth.GuardFunc)) *Auth_Extend_Call
type Auth_Guard_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.GuardDriver) *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.GuardDriver) *Auth_Guard_Call
type Auth_Guest_Call ¶ added in v1.15.12
Auth_Guest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Guest'
func (*Auth_Guest_Call) Return ¶ added in v1.15.12
func (_c *Auth_Guest_Call) Return(_a0 bool) *Auth_Guest_Call
func (*Auth_Guest_Call) Run ¶ added in v1.15.12
func (_c *Auth_Guest_Call) Run(run func()) *Auth_Guest_Call
func (*Auth_Guest_Call) RunAndReturn ¶ added in v1.15.12
func (_c *Auth_Guest_Call) RunAndReturn(run func() bool) *Auth_Guest_Call
type Auth_ID_Call ¶ added in v1.15.0
Auth_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*Auth_ID_Call) Return ¶ added in v1.15.0
func (_c *Auth_ID_Call) Return(token string, err error) *Auth_ID_Call
func (*Auth_ID_Call) Run ¶ added in v1.15.0
func (_c *Auth_ID_Call) Run(run func()) *Auth_ID_Call
func (*Auth_ID_Call) RunAndReturn ¶ added in v1.15.0
func (_c *Auth_ID_Call) RunAndReturn(run func() (string, error)) *Auth_ID_Call
type Auth_LoginUsingID_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 (_c *Auth_LoginUsingID_Call) Return(token string, err error) *Auth_LoginUsingID_Call
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 ¶
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 ¶
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 ¶
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_Provider_Call ¶ added in v1.15.12
Auth_Provider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Provider'
func (*Auth_Provider_Call) Return ¶ added in v1.15.12
func (_c *Auth_Provider_Call) Return() *Auth_Provider_Call
func (*Auth_Provider_Call) Run ¶ added in v1.15.12
func (_c *Auth_Provider_Call) Run(run func(name string, fn auth.UserProviderFunc)) *Auth_Provider_Call
func (*Auth_Provider_Call) RunAndReturn ¶ added in v1.15.12
func (_c *Auth_Provider_Call) RunAndReturn(run func(string, auth.UserProviderFunc)) *Auth_Provider_Call
type Auth_Refresh_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 ¶
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
type GuardDriver ¶ added in v1.15.12
GuardDriver is an autogenerated mock type for the GuardDriver type
func NewGuardDriver ¶ added in v1.15.12
func NewGuardDriver(t interface {
mock.TestingT
Cleanup(func())
}) *GuardDriver
NewGuardDriver creates a new instance of GuardDriver. 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 (*GuardDriver) Check ¶ added in v1.15.12
func (_m *GuardDriver) Check() bool
Check provides a mock function with no fields
func (*GuardDriver) EXPECT ¶ added in v1.15.12
func (_m *GuardDriver) EXPECT() *GuardDriver_Expecter
func (*GuardDriver) Guest ¶ added in v1.15.12
func (_m *GuardDriver) Guest() bool
Guest provides a mock function with no fields
func (*GuardDriver) ID ¶ added in v1.15.12
func (_m *GuardDriver) ID() (string, error)
ID provides a mock function with no fields
func (*GuardDriver) Login ¶ added in v1.15.12
func (_m *GuardDriver) Login(user interface{}) (string, error)
Login provides a mock function with given fields: user
func (*GuardDriver) LoginUsingID ¶ added in v1.15.12
func (_m *GuardDriver) LoginUsingID(id interface{}) (string, error)
LoginUsingID provides a mock function with given fields: id
func (*GuardDriver) Logout ¶ added in v1.15.12
func (_m *GuardDriver) Logout() error
Logout provides a mock function with no fields
func (*GuardDriver) Parse ¶ added in v1.15.12
func (_m *GuardDriver) Parse(token string) (*auth.Payload, error)
Parse provides a mock function with given fields: token
func (*GuardDriver) Refresh ¶ added in v1.15.12
func (_m *GuardDriver) Refresh() (string, error)
Refresh provides a mock function with no fields
func (*GuardDriver) User ¶ added in v1.15.12
func (_m *GuardDriver) User(user interface{}) error
User provides a mock function with given fields: user
type GuardDriver_Check_Call ¶ added in v1.15.12
GuardDriver_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*GuardDriver_Check_Call) Return ¶ added in v1.15.12
func (_c *GuardDriver_Check_Call) Return(_a0 bool) *GuardDriver_Check_Call
func (*GuardDriver_Check_Call) Run ¶ added in v1.15.12
func (_c *GuardDriver_Check_Call) Run(run func()) *GuardDriver_Check_Call
func (*GuardDriver_Check_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardDriver_Check_Call) RunAndReturn(run func() bool) *GuardDriver_Check_Call
type GuardDriver_Expecter ¶ added in v1.15.12
type GuardDriver_Expecter struct {
// contains filtered or unexported fields
}
func (*GuardDriver_Expecter) Check ¶ added in v1.15.12
func (_e *GuardDriver_Expecter) Check() *GuardDriver_Check_Call
Check is a helper method to define mock.On call
func (*GuardDriver_Expecter) Guest ¶ added in v1.15.12
func (_e *GuardDriver_Expecter) Guest() *GuardDriver_Guest_Call
Guest is a helper method to define mock.On call
func (*GuardDriver_Expecter) ID ¶ added in v1.15.12
func (_e *GuardDriver_Expecter) ID() *GuardDriver_ID_Call
ID is a helper method to define mock.On call
func (*GuardDriver_Expecter) Login ¶ added in v1.15.12
func (_e *GuardDriver_Expecter) Login(user interface{}) *GuardDriver_Login_Call
Login is a helper method to define mock.On call
- user interface{}
func (*GuardDriver_Expecter) LoginUsingID ¶ added in v1.15.12
func (_e *GuardDriver_Expecter) LoginUsingID(id interface{}) *GuardDriver_LoginUsingID_Call
LoginUsingID is a helper method to define mock.On call
- id interface{}
func (*GuardDriver_Expecter) Logout ¶ added in v1.15.12
func (_e *GuardDriver_Expecter) Logout() *GuardDriver_Logout_Call
Logout is a helper method to define mock.On call
func (*GuardDriver_Expecter) Parse ¶ added in v1.15.12
func (_e *GuardDriver_Expecter) Parse(token interface{}) *GuardDriver_Parse_Call
Parse is a helper method to define mock.On call
- token string
func (*GuardDriver_Expecter) Refresh ¶ added in v1.15.12
func (_e *GuardDriver_Expecter) Refresh() *GuardDriver_Refresh_Call
Refresh is a helper method to define mock.On call
func (*GuardDriver_Expecter) User ¶ added in v1.15.12
func (_e *GuardDriver_Expecter) User(user interface{}) *GuardDriver_User_Call
User is a helper method to define mock.On call
- user interface{}
type GuardDriver_Guest_Call ¶ added in v1.15.12
GuardDriver_Guest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Guest'
func (*GuardDriver_Guest_Call) Return ¶ added in v1.15.12
func (_c *GuardDriver_Guest_Call) Return(_a0 bool) *GuardDriver_Guest_Call
func (*GuardDriver_Guest_Call) Run ¶ added in v1.15.12
func (_c *GuardDriver_Guest_Call) Run(run func()) *GuardDriver_Guest_Call
func (*GuardDriver_Guest_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardDriver_Guest_Call) RunAndReturn(run func() bool) *GuardDriver_Guest_Call
type GuardDriver_ID_Call ¶ added in v1.15.12
GuardDriver_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*GuardDriver_ID_Call) Return ¶ added in v1.15.12
func (_c *GuardDriver_ID_Call) Return(token string, err error) *GuardDriver_ID_Call
func (*GuardDriver_ID_Call) Run ¶ added in v1.15.12
func (_c *GuardDriver_ID_Call) Run(run func()) *GuardDriver_ID_Call
func (*GuardDriver_ID_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardDriver_ID_Call) RunAndReturn(run func() (string, error)) *GuardDriver_ID_Call
type GuardDriver_LoginUsingID_Call ¶ added in v1.15.12
GuardDriver_LoginUsingID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoginUsingID'
func (*GuardDriver_LoginUsingID_Call) Return ¶ added in v1.15.12
func (_c *GuardDriver_LoginUsingID_Call) Return(token string, err error) *GuardDriver_LoginUsingID_Call
func (*GuardDriver_LoginUsingID_Call) Run ¶ added in v1.15.12
func (_c *GuardDriver_LoginUsingID_Call) Run(run func(id interface{})) *GuardDriver_LoginUsingID_Call
func (*GuardDriver_LoginUsingID_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardDriver_LoginUsingID_Call) RunAndReturn(run func(interface{}) (string, error)) *GuardDriver_LoginUsingID_Call
type GuardDriver_Login_Call ¶ added in v1.15.12
GuardDriver_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*GuardDriver_Login_Call) Return ¶ added in v1.15.12
func (_c *GuardDriver_Login_Call) Return(token string, err error) *GuardDriver_Login_Call
func (*GuardDriver_Login_Call) Run ¶ added in v1.15.12
func (_c *GuardDriver_Login_Call) Run(run func(user interface{})) *GuardDriver_Login_Call
func (*GuardDriver_Login_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardDriver_Login_Call) RunAndReturn(run func(interface{}) (string, error)) *GuardDriver_Login_Call
type GuardDriver_Logout_Call ¶ added in v1.15.12
GuardDriver_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'
func (*GuardDriver_Logout_Call) Return ¶ added in v1.15.12
func (_c *GuardDriver_Logout_Call) Return(_a0 error) *GuardDriver_Logout_Call
func (*GuardDriver_Logout_Call) Run ¶ added in v1.15.12
func (_c *GuardDriver_Logout_Call) Run(run func()) *GuardDriver_Logout_Call
func (*GuardDriver_Logout_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardDriver_Logout_Call) RunAndReturn(run func() error) *GuardDriver_Logout_Call
type GuardDriver_Parse_Call ¶ added in v1.15.12
GuardDriver_Parse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parse'
func (*GuardDriver_Parse_Call) Return ¶ added in v1.15.12
func (_c *GuardDriver_Parse_Call) Return(_a0 *auth.Payload, _a1 error) *GuardDriver_Parse_Call
func (*GuardDriver_Parse_Call) Run ¶ added in v1.15.12
func (_c *GuardDriver_Parse_Call) Run(run func(token string)) *GuardDriver_Parse_Call
func (*GuardDriver_Parse_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardDriver_Parse_Call) RunAndReturn(run func(string) (*auth.Payload, error)) *GuardDriver_Parse_Call
type GuardDriver_Refresh_Call ¶ added in v1.15.12
GuardDriver_Refresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Refresh'
func (*GuardDriver_Refresh_Call) Return ¶ added in v1.15.12
func (_c *GuardDriver_Refresh_Call) Return(token string, err error) *GuardDriver_Refresh_Call
func (*GuardDriver_Refresh_Call) Run ¶ added in v1.15.12
func (_c *GuardDriver_Refresh_Call) Run(run func()) *GuardDriver_Refresh_Call
func (*GuardDriver_Refresh_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardDriver_Refresh_Call) RunAndReturn(run func() (string, error)) *GuardDriver_Refresh_Call
type GuardDriver_User_Call ¶ added in v1.15.12
GuardDriver_User_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'User'
func (*GuardDriver_User_Call) Return ¶ added in v1.15.12
func (_c *GuardDriver_User_Call) Return(_a0 error) *GuardDriver_User_Call
func (*GuardDriver_User_Call) Run ¶ added in v1.15.12
func (_c *GuardDriver_User_Call) Run(run func(user interface{})) *GuardDriver_User_Call
func (*GuardDriver_User_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardDriver_User_Call) RunAndReturn(run func(interface{}) error) *GuardDriver_User_Call
type GuardFunc ¶ added in v1.15.12
GuardFunc is an autogenerated mock type for the GuardFunc type
func NewGuardFunc ¶ added in v1.15.12
NewGuardFunc creates a new instance of GuardFunc. 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 (*GuardFunc) EXPECT ¶ added in v1.15.12
func (_m *GuardFunc) EXPECT() *GuardFunc_Expecter
type GuardFunc_Execute_Call ¶ added in v1.15.12
GuardFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*GuardFunc_Execute_Call) Return ¶ added in v1.15.12
func (_c *GuardFunc_Execute_Call) Return(_a0 auth.GuardDriver, _a1 error) *GuardFunc_Execute_Call
func (*GuardFunc_Execute_Call) Run ¶ added in v1.15.12
func (_c *GuardFunc_Execute_Call) Run(run func(ctx http.Context, name string, userProvider auth.UserProvider)) *GuardFunc_Execute_Call
func (*GuardFunc_Execute_Call) RunAndReturn ¶ added in v1.15.12
func (_c *GuardFunc_Execute_Call) RunAndReturn(run func(http.Context, string, auth.UserProvider) (auth.GuardDriver, error)) *GuardFunc_Execute_Call
type GuardFunc_Expecter ¶ added in v1.15.12
type GuardFunc_Expecter struct {
// contains filtered or unexported fields
}
func (*GuardFunc_Expecter) Execute ¶ added in v1.15.12
func (_e *GuardFunc_Expecter) Execute(ctx interface{}, name interface{}, userProvider interface{}) *GuardFunc_Execute_Call
Execute is a helper method to define mock.On call
- ctx http.Context
- name string
- userProvider auth.UserProvider
type UserProvider ¶ added in v1.15.12
UserProvider is an autogenerated mock type for the UserProvider type
func NewUserProvider ¶ added in v1.15.12
func NewUserProvider(t interface {
mock.TestingT
Cleanup(func())
}) *UserProvider
NewUserProvider creates a new instance of UserProvider. 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 (*UserProvider) EXPECT ¶ added in v1.15.12
func (_m *UserProvider) EXPECT() *UserProvider_Expecter
func (*UserProvider) GetID ¶ added in v1.15.12
func (_m *UserProvider) GetID(user interface{}) (interface{}, error)
GetID provides a mock function with given fields: user
func (*UserProvider) RetriveByID ¶ added in v1.15.12
func (_m *UserProvider) RetriveByID(user interface{}, id interface{}) error
RetriveByID provides a mock function with given fields: user, id
type UserProviderFunc ¶ added in v1.15.12
UserProviderFunc is an autogenerated mock type for the UserProviderFunc type
func NewUserProviderFunc ¶ added in v1.15.12
func NewUserProviderFunc(t interface {
mock.TestingT
Cleanup(func())
}) *UserProviderFunc
NewUserProviderFunc creates a new instance of UserProviderFunc. 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 (*UserProviderFunc) EXPECT ¶ added in v1.15.12
func (_m *UserProviderFunc) EXPECT() *UserProviderFunc_Expecter
func (*UserProviderFunc) Execute ¶ added in v1.15.12
func (_m *UserProviderFunc) Execute(ctx http.Context) (auth.UserProvider, error)
Execute provides a mock function with given fields: ctx
type UserProviderFunc_Execute_Call ¶ added in v1.15.12
UserProviderFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*UserProviderFunc_Execute_Call) Return ¶ added in v1.15.12
func (_c *UserProviderFunc_Execute_Call) Return(_a0 auth.UserProvider, _a1 error) *UserProviderFunc_Execute_Call
func (*UserProviderFunc_Execute_Call) Run ¶ added in v1.15.12
func (_c *UserProviderFunc_Execute_Call) Run(run func(ctx http.Context)) *UserProviderFunc_Execute_Call
func (*UserProviderFunc_Execute_Call) RunAndReturn ¶ added in v1.15.12
func (_c *UserProviderFunc_Execute_Call) RunAndReturn(run func(http.Context) (auth.UserProvider, error)) *UserProviderFunc_Execute_Call
type UserProviderFunc_Expecter ¶ added in v1.15.12
type UserProviderFunc_Expecter struct {
// contains filtered or unexported fields
}
func (*UserProviderFunc_Expecter) Execute ¶ added in v1.15.12
func (_e *UserProviderFunc_Expecter) Execute(ctx interface{}) *UserProviderFunc_Execute_Call
Execute is a helper method to define mock.On call
- ctx http.Context
type UserProvider_Expecter ¶ added in v1.15.12
type UserProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*UserProvider_Expecter) GetID ¶ added in v1.15.12
func (_e *UserProvider_Expecter) GetID(user interface{}) *UserProvider_GetID_Call
GetID is a helper method to define mock.On call
- user interface{}
func (*UserProvider_Expecter) RetriveByID ¶ added in v1.15.12
func (_e *UserProvider_Expecter) RetriveByID(user interface{}, id interface{}) *UserProvider_RetriveByID_Call
RetriveByID is a helper method to define mock.On call
- user interface{}
- id interface{}
type UserProvider_GetID_Call ¶ added in v1.15.12
UserProvider_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*UserProvider_GetID_Call) Return ¶ added in v1.15.12
func (_c *UserProvider_GetID_Call) Return(_a0 interface{}, _a1 error) *UserProvider_GetID_Call
func (*UserProvider_GetID_Call) Run ¶ added in v1.15.12
func (_c *UserProvider_GetID_Call) Run(run func(user interface{})) *UserProvider_GetID_Call
func (*UserProvider_GetID_Call) RunAndReturn ¶ added in v1.15.12
func (_c *UserProvider_GetID_Call) RunAndReturn(run func(interface{}) (interface{}, error)) *UserProvider_GetID_Call
type UserProvider_RetriveByID_Call ¶ added in v1.15.12
UserProvider_RetriveByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetriveByID'
func (*UserProvider_RetriveByID_Call) Return ¶ added in v1.15.12
func (_c *UserProvider_RetriveByID_Call) Return(_a0 error) *UserProvider_RetriveByID_Call
func (*UserProvider_RetriveByID_Call) Run ¶ added in v1.15.12
func (_c *UserProvider_RetriveByID_Call) Run(run func(user interface{}, id interface{})) *UserProvider_RetriveByID_Call
func (*UserProvider_RetriveByID_Call) RunAndReturn ¶ added in v1.15.12
func (_c *UserProvider_RetriveByID_Call) RunAndReturn(run func(interface{}, interface{}) error) *UserProvider_RetriveByID_Call