Documentation ¶
Index ¶
- type Auth
- func (_m *Auth) Guard(name string) auth.Auth
- func (_m *Auth) Login(ctx http.Context, user interface{}) (string, error)
- func (_m *Auth) LoginUsingID(ctx http.Context, id interface{}) (string, error)
- func (_m *Auth) Logout(ctx http.Context) error
- func (_m *Auth) Parse(ctx http.Context, token string) error
- func (_m *Auth) Refresh(ctx http.Context) (string, error)
- func (_m *Auth) User(ctx http.Context, user interface{}) error
- type NewAuthT
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.
func (*Auth) LoginUsingID ¶
LoginUsingID provides a mock function with given fields: ctx, id
Click to show internal directories.
Click to hide internal directories.