mock_service

package
v0.0.0-...-6cdb919 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Index

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) GetMember

func (m *MockService) GetMember(ctx context.Context, memberID uint) (*models.Member, error)

GetMember mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL