Documentation
¶
Overview ¶
Package mock_session is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetOrCreate(arg0 *incoming.Request, arg1 apps.AppID, arg2 string) (*model.Session, error)
- func (m *MockService) ListForUser(arg0 *incoming.Request, arg1 string) ([]*model.Session, error)
- func (m *MockService) RevokeSessionsForApp(arg0 *incoming.Request, arg1 apps.AppID) error
- func (m *MockService) RevokeSessionsForUser(arg0 *incoming.Request, arg1 string) error
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) GetOrCreate(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ListForUser(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) RevokeSessionsForApp(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) RevokeSessionsForUser(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) GetOrCreate ¶
func (m *MockService) GetOrCreate(arg0 *incoming.Request, arg1 apps.AppID, arg2 string) (*model.Session, error)
GetOrCreate mocks base method.
func (*MockService) ListForUser ¶
ListForUser mocks base method.
func (*MockService) RevokeSessionsForApp ¶
RevokeSessionsForApp mocks base method.
func (*MockService) RevokeSessionsForUser ¶
func (m *MockService) RevokeSessionsForUser(arg0 *incoming.Request, arg1 string) error
RevokeSessionsForUser mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) GetOrCreate ¶
func (mr *MockServiceMockRecorder) GetOrCreate(arg0, arg1, arg2 interface{}) *gomock.Call
GetOrCreate indicates an expected call of GetOrCreate.
func (*MockServiceMockRecorder) ListForUser ¶
func (mr *MockServiceMockRecorder) ListForUser(arg0, arg1 interface{}) *gomock.Call
ListForUser indicates an expected call of ListForUser.
func (*MockServiceMockRecorder) RevokeSessionsForApp ¶
func (mr *MockServiceMockRecorder) RevokeSessionsForApp(arg0, arg1 interface{}) *gomock.Call
RevokeSessionsForApp indicates an expected call of RevokeSessionsForApp.
func (*MockServiceMockRecorder) RevokeSessionsForUser ¶
func (mr *MockServiceMockRecorder) RevokeSessionsForUser(arg0, arg1 interface{}) *gomock.Call
RevokeSessionsForUser indicates an expected call of RevokeSessionsForUser.