Documentation ¶
Index ¶
- type SecurityService
- func (_m *SecurityService) EXPECT() *SecurityService_Expecter
- func (_m *SecurityService) IsGranted(_a0 context.Context, _a1 *web.Session, _a2 string, _a3 interface{}) bool
- func (_m *SecurityService) IsLoggedIn(_a0 context.Context, _a1 *web.Session) bool
- func (_m *SecurityService) IsLoggedOut(_a0 context.Context, _a1 *web.Session) bool
- type SecurityService_Expecter
- func (_e *SecurityService_Expecter) IsGranted(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *SecurityService_IsGranted_Call
- func (_e *SecurityService_Expecter) IsLoggedIn(_a0 interface{}, _a1 interface{}) *SecurityService_IsLoggedIn_Call
- func (_e *SecurityService_Expecter) IsLoggedOut(_a0 interface{}, _a1 interface{}) *SecurityService_IsLoggedOut_Call
- type SecurityService_IsGranted_Call
- func (_c *SecurityService_IsGranted_Call) Return(_a0 bool) *SecurityService_IsGranted_Call
- func (_c *SecurityService_IsGranted_Call) Run(run func(_a0 context.Context, _a1 *web.Session, _a2 string, _a3 interface{})) *SecurityService_IsGranted_Call
- func (_c *SecurityService_IsGranted_Call) RunAndReturn(run func(context.Context, *web.Session, string, interface{}) bool) *SecurityService_IsGranted_Call
- type SecurityService_IsLoggedIn_Call
- func (_c *SecurityService_IsLoggedIn_Call) Return(_a0 bool) *SecurityService_IsLoggedIn_Call
- func (_c *SecurityService_IsLoggedIn_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *SecurityService_IsLoggedIn_Call
- func (_c *SecurityService_IsLoggedIn_Call) RunAndReturn(run func(context.Context, *web.Session) bool) *SecurityService_IsLoggedIn_Call
- type SecurityService_IsLoggedOut_Call
- func (_c *SecurityService_IsLoggedOut_Call) Return(_a0 bool) *SecurityService_IsLoggedOut_Call
- func (_c *SecurityService_IsLoggedOut_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *SecurityService_IsLoggedOut_Call
- func (_c *SecurityService_IsLoggedOut_Call) RunAndReturn(run func(context.Context, *web.Session) bool) *SecurityService_IsLoggedOut_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecurityService ¶
SecurityService is an autogenerated mock type for the SecurityService type
func NewSecurityService ¶ added in v3.4.0
func NewSecurityService(t interface { mock.TestingT Cleanup(func()) }) *SecurityService
NewSecurityService creates a new instance of SecurityService. 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 (*SecurityService) EXPECT ¶ added in v3.5.1
func (_m *SecurityService) EXPECT() *SecurityService_Expecter
func (*SecurityService) IsGranted ¶
func (_m *SecurityService) IsGranted(_a0 context.Context, _a1 *web.Session, _a2 string, _a3 interface{}) bool
IsGranted provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*SecurityService) IsLoggedIn ¶
IsLoggedIn provides a mock function with given fields: _a0, _a1
func (*SecurityService) IsLoggedOut ¶
IsLoggedOut provides a mock function with given fields: _a0, _a1
type SecurityService_Expecter ¶ added in v3.5.1
type SecurityService_Expecter struct {
// contains filtered or unexported fields
}
func (*SecurityService_Expecter) IsGranted ¶ added in v3.5.1
func (_e *SecurityService_Expecter) IsGranted(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *SecurityService_IsGranted_Call
IsGranted is a helper method to define mock.On call
- _a0 context.Context
- _a1 *web.Session
- _a2 string
- _a3 interface{}
func (*SecurityService_Expecter) IsLoggedIn ¶ added in v3.5.1
func (_e *SecurityService_Expecter) IsLoggedIn(_a0 interface{}, _a1 interface{}) *SecurityService_IsLoggedIn_Call
IsLoggedIn is a helper method to define mock.On call
- _a0 context.Context
- _a1 *web.Session
func (*SecurityService_Expecter) IsLoggedOut ¶ added in v3.5.1
func (_e *SecurityService_Expecter) IsLoggedOut(_a0 interface{}, _a1 interface{}) *SecurityService_IsLoggedOut_Call
IsLoggedOut is a helper method to define mock.On call
- _a0 context.Context
- _a1 *web.Session
type SecurityService_IsGranted_Call ¶ added in v3.5.1
SecurityService_IsGranted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsGranted'
func (*SecurityService_IsGranted_Call) Return ¶ added in v3.5.1
func (_c *SecurityService_IsGranted_Call) Return(_a0 bool) *SecurityService_IsGranted_Call
func (*SecurityService_IsGranted_Call) Run ¶ added in v3.5.1
func (_c *SecurityService_IsGranted_Call) Run(run func(_a0 context.Context, _a1 *web.Session, _a2 string, _a3 interface{})) *SecurityService_IsGranted_Call
func (*SecurityService_IsGranted_Call) RunAndReturn ¶ added in v3.5.1
func (_c *SecurityService_IsGranted_Call) RunAndReturn(run func(context.Context, *web.Session, string, interface{}) bool) *SecurityService_IsGranted_Call
type SecurityService_IsLoggedIn_Call ¶ added in v3.5.1
SecurityService_IsLoggedIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLoggedIn'
func (*SecurityService_IsLoggedIn_Call) Return ¶ added in v3.5.1
func (_c *SecurityService_IsLoggedIn_Call) Return(_a0 bool) *SecurityService_IsLoggedIn_Call
func (*SecurityService_IsLoggedIn_Call) Run ¶ added in v3.5.1
func (_c *SecurityService_IsLoggedIn_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *SecurityService_IsLoggedIn_Call
func (*SecurityService_IsLoggedIn_Call) RunAndReturn ¶ added in v3.5.1
func (_c *SecurityService_IsLoggedIn_Call) RunAndReturn(run func(context.Context, *web.Session) bool) *SecurityService_IsLoggedIn_Call
type SecurityService_IsLoggedOut_Call ¶ added in v3.5.1
SecurityService_IsLoggedOut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsLoggedOut'
func (*SecurityService_IsLoggedOut_Call) Return ¶ added in v3.5.1
func (_c *SecurityService_IsLoggedOut_Call) Return(_a0 bool) *SecurityService_IsLoggedOut_Call
func (*SecurityService_IsLoggedOut_Call) Run ¶ added in v3.5.1
func (_c *SecurityService_IsLoggedOut_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *SecurityService_IsLoggedOut_Call
func (*SecurityService_IsLoggedOut_Call) RunAndReturn ¶ added in v3.5.1
func (_c *SecurityService_IsLoggedOut_Call) RunAndReturn(run func(context.Context, *web.Session) bool) *SecurityService_IsLoggedOut_Call