Documentation
¶
Overview ¶
Package saga is a generated GoMock package.
Package saga is a generated GoMock package.
Package saga is a generated GoMock package.
Package saga is a generated GoMock package.
Index ¶
- type MockInstance
- func (m *MockInstance) AddHistoryEvent(arg0 message.Object, arg1 *saga.AddHistoryEvent)
- func (m *MockInstance) Compensate(arg0 saga.SagaContext) error
- func (m *MockInstance) Complete()
- func (m *MockInstance) EXPECT() *MockInstanceMockRecorder
- func (m *MockInstance) Fail(arg0 message.Object)
- func (m *MockInstance) HistoryEvents() []saga.HistoryEvent
- func (m *MockInstance) ParentID() string
- func (m *MockInstance) Recover(arg0 saga.SagaContext) error
- func (m *MockInstance) Saga() saga.Saga
- func (m *MockInstance) Start(arg0 saga.SagaContext) error
- func (m *MockInstance) StartedAt() *time.Time
- func (m *MockInstance) Status() saga.Status
- func (m *MockInstance) UID() string
- func (m *MockInstance) UpdatedAt() *time.Time
- type MockInstanceMockRecorder
- func (mr *MockInstanceMockRecorder) AddHistoryEvent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInstanceMockRecorder) Compensate(arg0 interface{}) *gomock.Call
- func (mr *MockInstanceMockRecorder) Complete() *gomock.Call
- func (mr *MockInstanceMockRecorder) Fail(arg0 interface{}) *gomock.Call
- func (mr *MockInstanceMockRecorder) HistoryEvents() *gomock.Call
- func (mr *MockInstanceMockRecorder) ParentID() *gomock.Call
- func (mr *MockInstanceMockRecorder) Recover(arg0 interface{}) *gomock.Call
- func (mr *MockInstanceMockRecorder) Saga() *gomock.Call
- func (mr *MockInstanceMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockInstanceMockRecorder) StartedAt() *gomock.Call
- func (mr *MockInstanceMockRecorder) Status() *gomock.Call
- func (mr *MockInstanceMockRecorder) UID() *gomock.Call
- func (mr *MockInstanceMockRecorder) UpdatedAt() *gomock.Call
- type MockSaga
- func (m *MockSaga) Compensate(arg0 saga.SagaContext) error
- func (m *MockSaga) EXPECT() *MockSagaMockRecorder
- func (m *MockSaga) EventHandlers() map[scheme.GroupKind]saga.Executor
- func (m *MockSaga) GroupKind() scheme.GroupKind
- func (m *MockSaga) Init()
- func (m *MockSaga) Recover(arg0 saga.SagaContext) error
- func (m *MockSaga) SetGroupKind(arg0 *scheme.GroupKind)
- func (m *MockSaga) SetSchema(arg0 scheme.KnownTypesRegistry)
- func (m *MockSaga) Start(arg0 saga.SagaContext) error
- type MockSagaMockRecorder
- func (mr *MockSagaMockRecorder) Compensate(arg0 interface{}) *gomock.Call
- func (mr *MockSagaMockRecorder) EventHandlers() *gomock.Call
- func (mr *MockSagaMockRecorder) GroupKind() *gomock.Call
- func (mr *MockSagaMockRecorder) Init() *gomock.Call
- func (mr *MockSagaMockRecorder) Recover(arg0 interface{}) *gomock.Call
- func (mr *MockSagaMockRecorder) SetGroupKind(arg0 interface{}) *gomock.Call
- func (mr *MockSagaMockRecorder) SetSchema(arg0 interface{}) *gomock.Call
- func (mr *MockSagaMockRecorder) Start(arg0 interface{}) *gomock.Call
- type MockSagaUIDService
- type MockSagaUIDServiceMockRecorder
- type MockStore
- func (m *MockStore) Create(arg0 context.Context, arg1 saga.Instance) error
- func (m *MockStore) Delete(arg0 context.Context, arg1 string) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GetByFilter(arg0 context.Context, arg1 ...saga.FilterOption) (*saga.InstancesBatch, error)
- func (m *MockStore) GetById(arg0 context.Context, arg1 string) (saga.Instance, error)
- func (m *MockStore) Update(arg0 context.Context, arg1 saga.Instance) error
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetByFilter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInstance ¶
type MockInstance struct {
// contains filtered or unexported fields
}
MockInstance is a mock of Instance interface.
func NewMockInstance ¶
func NewMockInstance(ctrl *gomock.Controller) *MockInstance
NewMockInstance creates a new mock instance.
func (*MockInstance) AddHistoryEvent ¶
func (m *MockInstance) AddHistoryEvent(arg0 message.Object, arg1 *saga.AddHistoryEvent)
AddHistoryEvent mocks base method.
func (*MockInstance) Compensate ¶
func (m *MockInstance) Compensate(arg0 saga.SagaContext) error
Compensate mocks base method.
func (*MockInstance) EXPECT ¶
func (m *MockInstance) EXPECT() *MockInstanceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstance) Fail ¶
func (m *MockInstance) Fail(arg0 message.Object)
Fail mocks base method.
func (*MockInstance) HistoryEvents ¶
func (m *MockInstance) HistoryEvents() []saga.HistoryEvent
HistoryEvents mocks base method.
func (*MockInstance) ParentID ¶
func (m *MockInstance) ParentID() string
ParentID mocks base method.
func (*MockInstance) Recover ¶
func (m *MockInstance) Recover(arg0 saga.SagaContext) error
Recover mocks base method.
func (*MockInstance) Start ¶
func (m *MockInstance) Start(arg0 saga.SagaContext) error
Start mocks base method.
func (*MockInstance) StartedAt ¶
func (m *MockInstance) StartedAt() *time.Time
StartedAt mocks base method.
func (*MockInstance) UpdatedAt ¶
func (m *MockInstance) UpdatedAt() *time.Time
UpdatedAt mocks base method.
type MockInstanceMockRecorder ¶
type MockInstanceMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceMockRecorder is the mock recorder for MockInstance.
func (*MockInstanceMockRecorder) AddHistoryEvent ¶
func (mr *MockInstanceMockRecorder) AddHistoryEvent(arg0, arg1 interface{}) *gomock.Call
AddHistoryEvent indicates an expected call of AddHistoryEvent.
func (*MockInstanceMockRecorder) Compensate ¶
func (mr *MockInstanceMockRecorder) Compensate(arg0 interface{}) *gomock.Call
Compensate indicates an expected call of Compensate.
func (*MockInstanceMockRecorder) Complete ¶
func (mr *MockInstanceMockRecorder) Complete() *gomock.Call
Complete indicates an expected call of Complete.
func (*MockInstanceMockRecorder) Fail ¶
func (mr *MockInstanceMockRecorder) Fail(arg0 interface{}) *gomock.Call
Fail indicates an expected call of Fail.
func (*MockInstanceMockRecorder) HistoryEvents ¶
func (mr *MockInstanceMockRecorder) HistoryEvents() *gomock.Call
HistoryEvents indicates an expected call of HistoryEvents.
func (*MockInstanceMockRecorder) ParentID ¶
func (mr *MockInstanceMockRecorder) ParentID() *gomock.Call
ParentID indicates an expected call of ParentID.
func (*MockInstanceMockRecorder) Recover ¶
func (mr *MockInstanceMockRecorder) Recover(arg0 interface{}) *gomock.Call
Recover indicates an expected call of Recover.
func (*MockInstanceMockRecorder) Saga ¶
func (mr *MockInstanceMockRecorder) Saga() *gomock.Call
Saga indicates an expected call of Saga.
func (*MockInstanceMockRecorder) Start ¶
func (mr *MockInstanceMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockInstanceMockRecorder) StartedAt ¶
func (mr *MockInstanceMockRecorder) StartedAt() *gomock.Call
StartedAt indicates an expected call of StartedAt.
func (*MockInstanceMockRecorder) Status ¶
func (mr *MockInstanceMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
func (*MockInstanceMockRecorder) UID ¶
func (mr *MockInstanceMockRecorder) UID() *gomock.Call
UID indicates an expected call of UID.
func (*MockInstanceMockRecorder) UpdatedAt ¶
func (mr *MockInstanceMockRecorder) UpdatedAt() *gomock.Call
UpdatedAt indicates an expected call of UpdatedAt.
type MockSaga ¶
type MockSaga struct {
// contains filtered or unexported fields
}
MockSaga is a mock of Saga interface.
func NewMockSaga ¶
func NewMockSaga(ctrl *gomock.Controller) *MockSaga
NewMockSaga creates a new mock instance.
func (*MockSaga) Compensate ¶
func (m *MockSaga) Compensate(arg0 saga.SagaContext) error
Compensate mocks base method.
func (*MockSaga) EXPECT ¶
func (m *MockSaga) EXPECT() *MockSagaMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSaga) EventHandlers ¶
EventHandlers mocks base method.
func (*MockSaga) Recover ¶
func (m *MockSaga) Recover(arg0 saga.SagaContext) error
Recover mocks base method.
func (*MockSaga) SetGroupKind ¶
SetGroupKind mocks base method.
func (*MockSaga) SetSchema ¶
func (m *MockSaga) SetSchema(arg0 scheme.KnownTypesRegistry)
SetSchema mocks base method.
type MockSagaMockRecorder ¶
type MockSagaMockRecorder struct {
// contains filtered or unexported fields
}
MockSagaMockRecorder is the mock recorder for MockSaga.
func (*MockSagaMockRecorder) Compensate ¶
func (mr *MockSagaMockRecorder) Compensate(arg0 interface{}) *gomock.Call
Compensate indicates an expected call of Compensate.
func (*MockSagaMockRecorder) EventHandlers ¶
func (mr *MockSagaMockRecorder) EventHandlers() *gomock.Call
EventHandlers indicates an expected call of EventHandlers.
func (*MockSagaMockRecorder) GroupKind ¶
func (mr *MockSagaMockRecorder) GroupKind() *gomock.Call
GroupKind indicates an expected call of GroupKind.
func (*MockSagaMockRecorder) Init ¶
func (mr *MockSagaMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init.
func (*MockSagaMockRecorder) Recover ¶
func (mr *MockSagaMockRecorder) Recover(arg0 interface{}) *gomock.Call
Recover indicates an expected call of Recover.
func (*MockSagaMockRecorder) SetGroupKind ¶
func (mr *MockSagaMockRecorder) SetGroupKind(arg0 interface{}) *gomock.Call
SetGroupKind indicates an expected call of SetGroupKind.
func (*MockSagaMockRecorder) SetSchema ¶
func (mr *MockSagaMockRecorder) SetSchema(arg0 interface{}) *gomock.Call
SetSchema indicates an expected call of SetSchema.
func (*MockSagaMockRecorder) Start ¶
func (mr *MockSagaMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
type MockSagaUIDService ¶
type MockSagaUIDService struct {
// contains filtered or unexported fields
}
MockSagaUIDService is a mock of SagaUIDService interface.
func NewMockSagaUIDService ¶
func NewMockSagaUIDService(ctrl *gomock.Controller) *MockSagaUIDService
NewMockSagaUIDService creates a new mock instance.
func (*MockSagaUIDService) AddSagaId ¶
func (m *MockSagaUIDService) AddSagaId(arg0 message.Headers, arg1 string)
AddSagaId mocks base method.
func (*MockSagaUIDService) EXPECT ¶
func (m *MockSagaUIDService) EXPECT() *MockSagaUIDServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSagaUIDService) ExtractSagaUID ¶
func (m *MockSagaUIDService) ExtractSagaUID(arg0 message.Headers) (string, error)
ExtractSagaUID mocks base method.
type MockSagaUIDServiceMockRecorder ¶
type MockSagaUIDServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSagaUIDServiceMockRecorder is the mock recorder for MockSagaUIDService.
func (*MockSagaUIDServiceMockRecorder) AddSagaId ¶
func (mr *MockSagaUIDServiceMockRecorder) AddSagaId(arg0, arg1 interface{}) *gomock.Call
AddSagaId indicates an expected call of AddSagaId.
func (*MockSagaUIDServiceMockRecorder) ExtractSagaUID ¶
func (mr *MockSagaUIDServiceMockRecorder) ExtractSagaUID(arg0 interface{}) *gomock.Call
ExtractSagaUID indicates an expected call of ExtractSagaUID.
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStore) GetByFilter ¶
func (m *MockStore) GetByFilter(arg0 context.Context, arg1 ...saga.FilterOption) (*saga.InstancesBatch, error)
GetByFilter mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) Create ¶
func (mr *MockStoreMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockStoreMockRecorder) Delete ¶
func (mr *MockStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStoreMockRecorder) GetByFilter ¶
func (mr *MockStoreMockRecorder) GetByFilter(arg0 interface{}, arg1 ...interface{}) *gomock.Call
GetByFilter indicates an expected call of GetByFilter.
func (*MockStoreMockRecorder) GetById ¶
func (mr *MockStoreMockRecorder) GetById(arg0, arg1 interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockStoreMockRecorder) Update ¶
func (mr *MockStoreMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.