Documentation ¶
Overview ¶
Package mock_service is a generated GoMock package.
Index ¶
- type MockService
- func (m *MockService) CreateMember(ctx context.Context, postMember service.PostMember) (*models.Member, error)
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetMember(ctx context.Context, memberID uint) (*models.Member, error)
- func (m *MockService) GetMemberOfResource(ctx context.Context, resourceType, resourceID string) (*models.Member, error)
- func (m *MockService) ListMember(ctx context.Context, resourceType string, resourceID uint) ([]models.Member, error)
- func (m *MockService) RemoveMember(ctx context.Context, memberID uint) error
- func (m *MockService) RequirePermissionEqualOrHigher(ctx context.Context, role, resourceType string, resourceID uint) error
- func (m *MockService) UpdateMember(ctx context.Context, memberID uint, role string) (*models.Member, error)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) CreateMember(ctx, postMember interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetMember(ctx, memberID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) GetMemberOfResource(ctx, resourceType, resourceID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ListMember(ctx, resourceType, resourceID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) RemoveMember(ctx, memberID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) RequirePermissionEqualOrHigher(ctx, role, resourceType, resourceID interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) UpdateMember(ctx, memberID, role 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) CreateMember ¶
func (m *MockService) CreateMember(ctx context.Context, postMember service.PostMember) (*models.Member, error)
CreateMember mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) GetMemberOfResource ¶
func (m *MockService) GetMemberOfResource(ctx context.Context, resourceType, resourceID string) (*models.Member, error)
GetMemberOfResource mocks base method.
func (*MockService) ListMember ¶
func (m *MockService) ListMember(ctx context.Context, resourceType string, resourceID uint) ([]models.Member, error)
ListMember mocks base method.
func (*MockService) RemoveMember ¶
func (m *MockService) RemoveMember(ctx context.Context, memberID uint) error
RemoveMember mocks base method.
func (*MockService) RequirePermissionEqualOrHigher ¶
func (m *MockService) RequirePermissionEqualOrHigher(ctx context.Context, role, resourceType string, resourceID uint) error
RequirePermissionEqualOrHigher mocks base method.
func (*MockService) UpdateMember ¶
func (m *MockService) UpdateMember(ctx context.Context, memberID uint, role string) (*models.Member, error)
UpdateMember mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) CreateMember ¶
func (mr *MockServiceMockRecorder) CreateMember(ctx, postMember interface{}) *gomock.Call
CreateMember indicates an expected call of CreateMember.
func (*MockServiceMockRecorder) GetMember ¶
func (mr *MockServiceMockRecorder) GetMember(ctx, memberID interface{}) *gomock.Call
GetMember indicates an expected call of GetMember.
func (*MockServiceMockRecorder) GetMemberOfResource ¶
func (mr *MockServiceMockRecorder) GetMemberOfResource(ctx, resourceType, resourceID interface{}) *gomock.Call
GetMemberOfResource indicates an expected call of GetMemberOfResource.
func (*MockServiceMockRecorder) ListMember ¶
func (mr *MockServiceMockRecorder) ListMember(ctx, resourceType, resourceID interface{}) *gomock.Call
ListMember indicates an expected call of ListMember.
func (*MockServiceMockRecorder) RemoveMember ¶
func (mr *MockServiceMockRecorder) RemoveMember(ctx, memberID interface{}) *gomock.Call
RemoveMember indicates an expected call of RemoveMember.
func (*MockServiceMockRecorder) RequirePermissionEqualOrHigher ¶
func (mr *MockServiceMockRecorder) RequirePermissionEqualOrHigher(ctx, role, resourceType, resourceID interface{}) *gomock.Call
RequirePermissionEqualOrHigher indicates an expected call of RequirePermissionEqualOrHigher.
func (*MockServiceMockRecorder) UpdateMember ¶
func (mr *MockServiceMockRecorder) UpdateMember(ctx, memberID, role interface{}) *gomock.Call
UpdateMember indicates an expected call of UpdateMember.