Documentation ¶
Overview ¶
Package datasource is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultTransactionHandler ¶
type DefaultTransactionHandler struct {
// contains filtered or unexported fields
}
func NewTransactionHandler ¶
func NewTransactionHandler(db *gorm.DB) *DefaultTransactionHandler
func (*DefaultTransactionHandler) HandleTransaction ¶
func (handler *DefaultTransactionHandler) HandleTransaction(ctx context.Context, fn TransactionHandlerFunction) error
type MockTransactionHandler ¶
type MockTransactionHandler struct {
// contains filtered or unexported fields
}
MockTransactionHandler is a mock of TransactionHandler interface.
func NewMockTransactionHandler ¶
func NewMockTransactionHandler(ctrl *gomock.Controller) *MockTransactionHandler
NewMockTransactionHandler creates a new mock instance.
func (*MockTransactionHandler) EXPECT ¶
func (m *MockTransactionHandler) EXPECT() *MockTransactionHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransactionHandler) HandleTransaction ¶
func (m *MockTransactionHandler) HandleTransaction(ctx context.Context, fn TransactionHandlerFunction) error
HandleTransaction mocks base method.
type MockTransactionHandlerMockRecorder ¶
type MockTransactionHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionHandlerMockRecorder is the mock recorder for MockTransactionHandler.
func (*MockTransactionHandlerMockRecorder) HandleTransaction ¶
func (mr *MockTransactionHandlerMockRecorder) HandleTransaction(ctx, fn any) *gomock.Call
HandleTransaction indicates an expected call of HandleTransaction.
type TransactionHandler ¶
type TransactionHandler interface {
HandleTransaction(ctx context.Context, fn TransactionHandlerFunction) error
}
Click to show internal directories.
Click to hide internal directories.