Documentation ¶
Index ¶
- type EntityConverter
- type OperationConverter
- type OperationRepository
- func (_m *OperationRepository) Create(ctx context.Context, _a1 *model.Operation) error
- func (_m *OperationRepository) DeleteMultiple(ctx context.Context, ids []string) error
- func (_m *OperationRepository) DeleteOperations(ctx context.Context, operationType model.OperationType, ...) error
- func (_m *OperationRepository) Get(ctx context.Context, id string) (*model.Operation, error)
- func (_m *OperationRepository) GetByDataAndType(ctx context.Context, data interface{}, opType model.OperationType) (*model.Operation, error)
- func (_m *OperationRepository) ListAllByType(ctx context.Context, opType model.OperationType) ([]*model.Operation, error)
- func (_m *OperationRepository) LockOperation(ctx context.Context, operationID string) (bool, error)
- func (_m *OperationRepository) PriorityQueueListByType(ctx context.Context, queueLimit int, opType model.OperationType) ([]*model.Operation, error)
- func (_m *OperationRepository) RescheduleHangedOperations(ctx context.Context, operationType model.OperationType, ...) error
- func (_m *OperationRepository) RescheduleOperations(ctx context.Context, operationType model.OperationType, ...) error
- func (_m *OperationRepository) Update(ctx context.Context, _a1 *model.Operation) error
- type OperationService
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityConverter ¶
EntityConverter is an autogenerated mock type for the EntityConverter type
func NewEntityConverter ¶
func NewEntityConverter(t interface { mock.TestingT Cleanup(func()) }) *EntityConverter
NewEntityConverter creates a new instance of EntityConverter. 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 (*EntityConverter) FromEntity ¶
func (_m *EntityConverter) FromEntity(entity *operation.Entity) *model.Operation
FromEntity provides a mock function with given fields: entity
type OperationConverter ¶
OperationConverter is an autogenerated mock type for the OperationConverter type
func NewOperationConverter ¶
func NewOperationConverter(t mockConstructorTestingTNewOperationConverter) *OperationConverter
NewOperationConverter creates a new instance of OperationConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type OperationRepository ¶
OperationRepository is an autogenerated mock type for the OperationRepository type
func NewOperationRepository ¶
func NewOperationRepository(t interface { mock.TestingT Cleanup(func()) }) *OperationRepository
NewOperationRepository creates a new instance of OperationRepository. 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 (*OperationRepository) DeleteMultiple ¶
func (_m *OperationRepository) DeleteMultiple(ctx context.Context, ids []string) error
DeleteMultiple provides a mock function with given fields: ctx, ids
func (*OperationRepository) DeleteOperations ¶
func (_m *OperationRepository) DeleteOperations(ctx context.Context, operationType model.OperationType, reschedulePeriod time.Duration) error
DeleteOperations provides a mock function with given fields: ctx, operationType, reschedulePeriod
func (*OperationRepository) GetByDataAndType ¶
func (_m *OperationRepository) GetByDataAndType(ctx context.Context, data interface{}, opType model.OperationType) (*model.Operation, error)
GetByDataAndType provides a mock function with given fields: ctx, data, opType
func (*OperationRepository) ListAllByType ¶
func (_m *OperationRepository) ListAllByType(ctx context.Context, opType model.OperationType) ([]*model.Operation, error)
ListAllByType provides a mock function with given fields: ctx, opType
func (*OperationRepository) LockOperation ¶
LockOperation provides a mock function with given fields: ctx, operationID
func (*OperationRepository) PriorityQueueListByType ¶
func (_m *OperationRepository) PriorityQueueListByType(ctx context.Context, queueLimit int, opType model.OperationType) ([]*model.Operation, error)
PriorityQueueListByType provides a mock function with given fields: ctx, queueLimit, opType
func (*OperationRepository) RescheduleHangedOperations ¶
func (_m *OperationRepository) RescheduleHangedOperations(ctx context.Context, operationType model.OperationType, hangPeriod time.Duration) error
RescheduleHangedOperations provides a mock function with given fields: ctx, operationType, hangPeriod
func (*OperationRepository) RescheduleOperations ¶
func (_m *OperationRepository) RescheduleOperations(ctx context.Context, operationType model.OperationType, reschedulePeriod time.Duration, operationStatuses []string) error
RescheduleOperations provides a mock function with given fields: ctx, operationType, reschedulePeriod, operationStatuses
type OperationService ¶
OperationService is an autogenerated mock type for the OperationService type
func NewOperationService ¶
func NewOperationService(t mockConstructorTestingTNewOperationService) *OperationService
NewOperationService creates a new instance of OperationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OperationService) RescheduleOperation ¶
func (_m *OperationService) RescheduleOperation(ctx context.Context, operationID string, priority int) error
RescheduleOperation provides a mock function with given fields: ctx, operationID, priority
type UIDService ¶
UIDService is an autogenerated mock type for the UIDService type
func NewUIDService ¶
func NewUIDService(t interface { mock.TestingT Cleanup(func()) }) *UIDService
NewUIDService creates a new instance of UIDService. 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 (*UIDService) Generate ¶
func (_m *UIDService) Generate() string
Generate provides a mock function with given fields: