Documentation ¶
Index ¶
- type OrderRepoWith2PC
- func (_m *OrderRepoWith2PC) CommitInsertTransaction(ctx context.Context, txID uuid.UUID) error
- func (_m *OrderRepoWith2PC) GetOrder(ctx context.Context, id uuid.UUID) (*repository.Order, error)
- func (_m *OrderRepoWith2PC) PrepareInsertOrder(ctx context.Context, order *repository.Order, txId uuid.UUID) error
- func (_m *OrderRepoWith2PC) RollbackInsertTransaction(ctx context.Context, txID uuid.UUID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderRepoWith2PC ¶
OrderRepoWith2PC is an autogenerated mock type for the OrderRepoWith2PC type
func NewOrderRepoWith2PC ¶
func NewOrderRepoWith2PC(t testing.TB) *OrderRepoWith2PC
NewOrderRepoWith2PC creates a new instance of OrderRepoWith2PC. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*OrderRepoWith2PC) CommitInsertTransaction ¶
CommitInsertTransaction provides a mock function with given fields: ctx, txID
func (*OrderRepoWith2PC) GetOrder ¶
func (_m *OrderRepoWith2PC) GetOrder(ctx context.Context, id uuid.UUID) (*repository.Order, error)
GetOrder provides a mock function with given fields: ctx, id
func (*OrderRepoWith2PC) PrepareInsertOrder ¶
func (_m *OrderRepoWith2PC) PrepareInsertOrder(ctx context.Context, order *repository.Order, txId uuid.UUID) error
PrepareInsertOrder provides a mock function with given fields: ctx, order, txId
func (*OrderRepoWith2PC) RollbackInsertTransaction ¶
RollbackInsertTransaction provides a mock function with given fields: ctx, txID
Click to show internal directories.
Click to hide internal directories.