Documentation ¶
Overview ¶
Package importer is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportResp ¶
type ImportResult ¶
type ImportResult struct { Resp *ImportResp Err error }
type Importer ¶
type Importer interface { Import(records ...spec.Record) (*ImportResp, error) // Add Done Wait for synchronize, similar to sync.WaitGroup. Add(delta int) Done() Wait() }
func NewWithOpts ¶
type MockImporter ¶
type MockImporter struct {
// contains filtered or unexported fields
}
MockImporter is a mock of Importer interface.
func NewMockImporter ¶
func NewMockImporter(ctrl *gomock.Controller) *MockImporter
NewMockImporter creates a new mock instance.
func (*MockImporter) EXPECT ¶
func (m *MockImporter) EXPECT() *MockImporterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockImporter) Import ¶
func (m *MockImporter) Import(records ...spec.Record) (*ImportResp, error)
Import mocks base method.
type MockImporterMockRecorder ¶
type MockImporterMockRecorder struct {
// contains filtered or unexported fields
}
MockImporterMockRecorder is the mock recorder for MockImporter.
func (*MockImporterMockRecorder) Add ¶
func (mr *MockImporterMockRecorder) Add(delta interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockImporterMockRecorder) Done ¶
func (mr *MockImporterMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockImporterMockRecorder) Import ¶
func (mr *MockImporterMockRecorder) Import(records ...interface{}) *gomock.Call
Import indicates an expected call of Import.
func (*MockImporterMockRecorder) Wait ¶
func (mr *MockImporterMockRecorder) Wait() *gomock.Call
Wait indicates an expected call of Wait.
type Option ¶
type Option func(*defaultImporter)
func WithAddFunc ¶
func WithClientPool ¶
func WithDoneFunc ¶
func WithDoneFunc(fn func()) Option
func WithStatementBuilder ¶
func WithStatementBuilder(builder spec.StatementBuilder) Option
func WithWaitFunc ¶
func WithWaitFunc(fn func()) Option
Click to show internal directories.
Click to hide internal directories.