Documentation
¶
Overview ¶
Package mock_entity is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Count(ctx context.Context) (int64, error)
- func (m *MockRepository) Delete(ctx context.Context, key string) error
- func (m *MockRepository) DeleteMeta(ctx context.Context, ccid string) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context, key string) (core.Entity, error)
- func (m *MockRepository) GetByAlias(ctx context.Context, alias string) (core.Entity, error)
- func (m *MockRepository) GetList(ctx context.Context) ([]core.Entity, error)
- func (m *MockRepository) GetMeta(ctx context.Context, key string) (core.EntityMeta, error)
- func (m *MockRepository) SetAlias(ctx context.Context, id, alias string) error
- func (m *MockRepository) SetTombstone(ctx context.Context, id, document, signature string) error
- func (m *MockRepository) UpdateMeta(ctx context.Context, key, info string) error
- func (m *MockRepository) UpdateScore(ctx context.Context, id string, score int) error
- func (m *MockRepository) UpdateTag(ctx context.Context, id, tag string) error
- func (m *MockRepository) Upsert(ctx context.Context, entity core.Entity) (core.Entity, error)
- func (m *MockRepository) UpsertWithMeta(ctx context.Context, entity core.Entity, meta core.EntityMeta) (core.Entity, core.EntityMeta, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Count(ctx any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(ctx, key any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) DeleteMeta(ctx, ccid any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(ctx, key any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByAlias(ctx, alias any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetList(ctx any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetMeta(ctx, key any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) SetAlias(ctx, id, alias any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) SetTombstone(ctx, id, document, signature any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateMeta(ctx, key, info any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateScore(ctx, id, score any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateTag(ctx, id, tag any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Upsert(ctx, entity any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpsertWithMeta(ctx, entity, meta any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Count ¶
func (m *MockRepository) Count(ctx context.Context) (int64, error)
Count mocks base method.
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(ctx context.Context, key string) error
Delete mocks base method.
func (*MockRepository) DeleteMeta ¶
func (m *MockRepository) DeleteMeta(ctx context.Context, ccid string) error
DeleteMeta mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetByAlias ¶
GetByAlias mocks base method.
func (*MockRepository) GetMeta ¶
func (m *MockRepository) GetMeta(ctx context.Context, key string) (core.EntityMeta, error)
GetMeta mocks base method.
func (*MockRepository) SetAlias ¶
func (m *MockRepository) SetAlias(ctx context.Context, id, alias string) error
SetAlias mocks base method.
func (*MockRepository) SetTombstone ¶
func (m *MockRepository) SetTombstone(ctx context.Context, id, document, signature string) error
SetTombstone mocks base method.
func (*MockRepository) UpdateMeta ¶
func (m *MockRepository) UpdateMeta(ctx context.Context, key, info string) error
UpdateMeta mocks base method.
func (*MockRepository) UpdateScore ¶
UpdateScore mocks base method.
func (*MockRepository) UpdateTag ¶
func (m *MockRepository) UpdateTag(ctx context.Context, id, tag string) error
UpdateTag mocks base method.
func (*MockRepository) UpsertWithMeta ¶
func (m *MockRepository) UpsertWithMeta(ctx context.Context, entity core.Entity, meta core.EntityMeta) (core.Entity, core.EntityMeta, error)
UpsertWithMeta mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Count ¶
func (mr *MockRepositoryMockRecorder) Count(ctx any) *gomock.Call
Count indicates an expected call of Count.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, key any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) DeleteMeta ¶
func (mr *MockRepositoryMockRecorder) DeleteMeta(ctx, ccid any) *gomock.Call
DeleteMeta indicates an expected call of DeleteMeta.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetByAlias ¶
func (mr *MockRepositoryMockRecorder) GetByAlias(ctx, alias any) *gomock.Call
GetByAlias indicates an expected call of GetByAlias.
func (*MockRepositoryMockRecorder) GetList ¶
func (mr *MockRepositoryMockRecorder) GetList(ctx any) *gomock.Call
GetList indicates an expected call of GetList.
func (*MockRepositoryMockRecorder) GetMeta ¶
func (mr *MockRepositoryMockRecorder) GetMeta(ctx, key any) *gomock.Call
GetMeta indicates an expected call of GetMeta.
func (*MockRepositoryMockRecorder) SetAlias ¶
func (mr *MockRepositoryMockRecorder) SetAlias(ctx, id, alias any) *gomock.Call
SetAlias indicates an expected call of SetAlias.
func (*MockRepositoryMockRecorder) SetTombstone ¶
func (mr *MockRepositoryMockRecorder) SetTombstone(ctx, id, document, signature any) *gomock.Call
SetTombstone indicates an expected call of SetTombstone.
func (*MockRepositoryMockRecorder) UpdateMeta ¶
func (mr *MockRepositoryMockRecorder) UpdateMeta(ctx, key, info any) *gomock.Call
UpdateMeta indicates an expected call of UpdateMeta.
func (*MockRepositoryMockRecorder) UpdateScore ¶
func (mr *MockRepositoryMockRecorder) UpdateScore(ctx, id, score any) *gomock.Call
UpdateScore indicates an expected call of UpdateScore.
func (*MockRepositoryMockRecorder) UpdateTag ¶
func (mr *MockRepositoryMockRecorder) UpdateTag(ctx, id, tag any) *gomock.Call
UpdateTag indicates an expected call of UpdateTag.
func (*MockRepositoryMockRecorder) Upsert ¶
func (mr *MockRepositoryMockRecorder) Upsert(ctx, entity any) *gomock.Call
Upsert indicates an expected call of Upsert.
func (*MockRepositoryMockRecorder) UpsertWithMeta ¶
func (mr *MockRepositoryMockRecorder) UpsertWithMeta(ctx, entity, meta any) *gomock.Call
UpsertWithMeta indicates an expected call of UpsertWithMeta.