saga

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 7 Imported by: 0

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

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

func (m *MockInstance) Complete()

Complete mocks base method.

func (*MockInstance) EXPECT

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

func (m *MockInstance) Saga() saga.Saga

Saga 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) Status

func (m *MockInstance) Status() saga.Status

Status mocks base method.

func (*MockInstance) UID

func (m *MockInstance) UID() string

UID 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

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

func (m *MockSaga) EventHandlers() map[scheme.GroupKind]saga.Executor

EventHandlers mocks base method.

func (*MockSaga) GroupKind

func (m *MockSaga) GroupKind() scheme.GroupKind

GroupKind mocks base method.

func (*MockSaga) Init

func (m *MockSaga) Init()

Init mocks base method.

func (*MockSaga) Recover

func (m *MockSaga) Recover(arg0 saga.SagaContext) error

Recover mocks base method.

func (*MockSaga) SetGroupKind

func (m *MockSaga) SetGroupKind(arg0 *scheme.GroupKind)

SetGroupKind mocks base method.

func (*MockSaga) SetSchema

func (m *MockSaga) SetSchema(arg0 scheme.KnownTypesRegistry)

SetSchema mocks base method.

func (*MockSaga) Start

func (m *MockSaga) Start(arg0 saga.SagaContext) error

Start 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

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

func (m *MockStore) Create(arg0 context.Context, arg1 saga.Instance) error

Create mocks base method.

func (*MockStore) Delete

func (m *MockStore) Delete(arg0 context.Context, arg1 string) error

Delete mocks base method.

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.

func (*MockStore) GetById

func (m *MockStore) GetById(arg0 context.Context, arg1 string) (saga.Instance, error)

GetById mocks base method.

func (*MockStore) Update

func (m *MockStore) Update(arg0 context.Context, arg1 saga.Instance) error

Update 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.

Directories

Path Synopsis
Package mutex is a generated GoMock package.
Package mutex is a generated GoMock package.

Jump to

Keyboard shortcuts

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