Documentation ¶
Index ¶
- type Auth
- func (_m *Auth) EXPECT() *Auth_Expecter
- func (_m *Auth) Guard(name string) auth.Auth
- 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) Refresh() (string, error)
- func (_m *Auth) User(user interface{}) error
- type Auth_Expecter
- func (_e *Auth_Expecter) Guard(name interface{}) *Auth_Guard_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) Refresh() *Auth_Refresh_Call
- func (_e *Auth_Expecter) User(user interface{}) *Auth_User_Call
- type Auth_Guard_Call
- type Auth_Id_Call
- type Auth_LoginUsingID_Call
- type Auth_Login_Call
- type Auth_Logout_Call
- type Auth_Parse_Call
- type Auth_Refresh_Call
- type Auth_User_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) LoginUsingID ¶
LoginUsingID provides a mock function with given fields: id
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 ¶
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 ¶
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 ¶
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_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