Documentation ¶
Index ¶
- type AsyncWriter
- type AsyncWriter_Close_Call
- type AsyncWriter_Expecter
- type AsyncWriter_Flush_Call
- type AsyncWriter_Queue_Call
- func (_c *AsyncWriter_Queue_Call) Return(_a0 error) *AsyncWriter_Queue_Call
- func (_c *AsyncWriter_Queue_Call) Run(run func(ctx context.Context, model interface{})) *AsyncWriter_Queue_Call
- func (_c *AsyncWriter_Queue_Call) RunAndReturn(run func(context.Context, interface{}) error) *AsyncWriter_Queue_Call
- type Provider
- func (_m *Provider) BulkWriter(ctx context.Context, collection collections.Collection, ...) (storedb.AsyncWriter, error)
- func (_m *Provider) Clear(ctx context.Context) error
- func (_m *Provider) Close(ctx context.Context) error
- func (_m *Provider) EXPECT() *Provider_Expecter
- func (_m *Provider) HealthCheck(ctx context.Context) (bool, error)
- func (_m *Provider) Name() string
- func (_m *Provider) Raw() interface{}
- type Provider_BulkWriter_Call
- func (_c *Provider_BulkWriter_Call) Return(_a0 storedb.AsyncWriter, _a1 error) *Provider_BulkWriter_Call
- func (_c *Provider_BulkWriter_Call) Run(run func(ctx context.Context, collection collections.Collection, ...)) *Provider_BulkWriter_Call
- func (_c *Provider_BulkWriter_Call) RunAndReturn(...) *Provider_BulkWriter_Call
- type Provider_Clear_Call
- type Provider_Close_Call
- type Provider_Expecter
- func (_e *Provider_Expecter) BulkWriter(ctx interface{}, collection interface{}, opts ...interface{}) *Provider_BulkWriter_Call
- func (_e *Provider_Expecter) Clear(ctx interface{}) *Provider_Clear_Call
- func (_e *Provider_Expecter) Close(ctx interface{}) *Provider_Close_Call
- func (_e *Provider_Expecter) HealthCheck(ctx interface{}) *Provider_HealthCheck_Call
- func (_e *Provider_Expecter) Name() *Provider_Name_Call
- func (_e *Provider_Expecter) Raw() *Provider_Raw_Call
- type Provider_HealthCheck_Call
- func (_c *Provider_HealthCheck_Call) Return(_a0 bool, _a1 error) *Provider_HealthCheck_Call
- func (_c *Provider_HealthCheck_Call) Run(run func(ctx context.Context)) *Provider_HealthCheck_Call
- func (_c *Provider_HealthCheck_Call) RunAndReturn(run func(context.Context) (bool, error)) *Provider_HealthCheck_Call
- type Provider_Name_Call
- type Provider_Raw_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncWriter ¶
AsyncWriter is an autogenerated mock type for the AsyncWriter type
func NewAsyncWriter ¶
func NewAsyncWriter(t mockConstructorTestingTNewAsyncWriter) *AsyncWriter
NewAsyncWriter creates a new instance of AsyncWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AsyncWriter) Close ¶
func (_m *AsyncWriter) Close(ctx context.Context) error
Close provides a mock function with given fields: ctx
func (*AsyncWriter) EXPECT ¶
func (_m *AsyncWriter) EXPECT() *AsyncWriter_Expecter
type AsyncWriter_Close_Call ¶
AsyncWriter_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*AsyncWriter_Close_Call) Return ¶
func (_c *AsyncWriter_Close_Call) Return(_a0 error) *AsyncWriter_Close_Call
func (*AsyncWriter_Close_Call) Run ¶
func (_c *AsyncWriter_Close_Call) Run(run func(ctx context.Context)) *AsyncWriter_Close_Call
func (*AsyncWriter_Close_Call) RunAndReturn ¶
func (_c *AsyncWriter_Close_Call) RunAndReturn(run func(context.Context) error) *AsyncWriter_Close_Call
type AsyncWriter_Expecter ¶
type AsyncWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*AsyncWriter_Expecter) Close ¶
func (_e *AsyncWriter_Expecter) Close(ctx interface{}) *AsyncWriter_Close_Call
Close is a helper method to define mock.On call
- ctx context.Context
func (*AsyncWriter_Expecter) Flush ¶
func (_e *AsyncWriter_Expecter) Flush(ctx interface{}) *AsyncWriter_Flush_Call
Flush is a helper method to define mock.On call
- ctx context.Context
func (*AsyncWriter_Expecter) Queue ¶
func (_e *AsyncWriter_Expecter) Queue(ctx interface{}, model interface{}) *AsyncWriter_Queue_Call
Queue is a helper method to define mock.On call
- ctx context.Context
- model interface{}
type AsyncWriter_Flush_Call ¶
AsyncWriter_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
func (*AsyncWriter_Flush_Call) Return ¶
func (_c *AsyncWriter_Flush_Call) Return(_a0 error) *AsyncWriter_Flush_Call
func (*AsyncWriter_Flush_Call) Run ¶
func (_c *AsyncWriter_Flush_Call) Run(run func(ctx context.Context)) *AsyncWriter_Flush_Call
func (*AsyncWriter_Flush_Call) RunAndReturn ¶
func (_c *AsyncWriter_Flush_Call) RunAndReturn(run func(context.Context) error) *AsyncWriter_Flush_Call
type AsyncWriter_Queue_Call ¶
AsyncWriter_Queue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Queue'
func (*AsyncWriter_Queue_Call) Return ¶
func (_c *AsyncWriter_Queue_Call) Return(_a0 error) *AsyncWriter_Queue_Call
func (*AsyncWriter_Queue_Call) Run ¶
func (_c *AsyncWriter_Queue_Call) Run(run func(ctx context.Context, model interface{})) *AsyncWriter_Queue_Call
func (*AsyncWriter_Queue_Call) RunAndReturn ¶
func (_c *AsyncWriter_Queue_Call) RunAndReturn(run func(context.Context, interface{}) error) *AsyncWriter_Queue_Call
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
func NewProvider(t mockConstructorTestingTNewProvider) *Provider
NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Provider) BulkWriter ¶
func (_m *Provider) BulkWriter(ctx context.Context, collection collections.Collection, opts ...storedb.WriterOption) (storedb.AsyncWriter, error)
BulkWriter provides a mock function with given fields: ctx, collection, opts
func (*Provider) EXPECT ¶
func (_m *Provider) EXPECT() *Provider_Expecter
func (*Provider) HealthCheck ¶
HealthCheck provides a mock function with given fields: ctx
type Provider_BulkWriter_Call ¶
Provider_BulkWriter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkWriter'
func (*Provider_BulkWriter_Call) Return ¶
func (_c *Provider_BulkWriter_Call) Return(_a0 storedb.AsyncWriter, _a1 error) *Provider_BulkWriter_Call
func (*Provider_BulkWriter_Call) Run ¶
func (_c *Provider_BulkWriter_Call) Run(run func(ctx context.Context, collection collections.Collection, opts ...storedb.WriterOption)) *Provider_BulkWriter_Call
func (*Provider_BulkWriter_Call) RunAndReturn ¶
func (_c *Provider_BulkWriter_Call) RunAndReturn(run func(context.Context, collections.Collection, ...storedb.WriterOption) (storedb.AsyncWriter, error)) *Provider_BulkWriter_Call
type Provider_Clear_Call ¶
Provider_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'
func (*Provider_Clear_Call) Return ¶
func (_c *Provider_Clear_Call) Return(_a0 error) *Provider_Clear_Call
func (*Provider_Clear_Call) Run ¶
func (_c *Provider_Clear_Call) Run(run func(ctx context.Context)) *Provider_Clear_Call
func (*Provider_Clear_Call) RunAndReturn ¶
func (_c *Provider_Clear_Call) RunAndReturn(run func(context.Context) error) *Provider_Clear_Call
type Provider_Close_Call ¶
Provider_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*Provider_Close_Call) Return ¶
func (_c *Provider_Close_Call) Return(_a0 error) *Provider_Close_Call
func (*Provider_Close_Call) Run ¶
func (_c *Provider_Close_Call) Run(run func(ctx context.Context)) *Provider_Close_Call
func (*Provider_Close_Call) RunAndReturn ¶
func (_c *Provider_Close_Call) RunAndReturn(run func(context.Context) error) *Provider_Close_Call
type Provider_Expecter ¶
type Provider_Expecter struct {
// contains filtered or unexported fields
}
func (*Provider_Expecter) BulkWriter ¶
func (_e *Provider_Expecter) BulkWriter(ctx interface{}, collection interface{}, opts ...interface{}) *Provider_BulkWriter_Call
BulkWriter is a helper method to define mock.On call
- ctx context.Context
- collection collections.Collection
- opts ...storedb.WriterOption
func (*Provider_Expecter) Clear ¶
func (_e *Provider_Expecter) Clear(ctx interface{}) *Provider_Clear_Call
Clear is a helper method to define mock.On call
- ctx context.Context
func (*Provider_Expecter) Close ¶
func (_e *Provider_Expecter) Close(ctx interface{}) *Provider_Close_Call
Close is a helper method to define mock.On call
- ctx context.Context
func (*Provider_Expecter) HealthCheck ¶
func (_e *Provider_Expecter) HealthCheck(ctx interface{}) *Provider_HealthCheck_Call
HealthCheck is a helper method to define mock.On call
- ctx context.Context
func (*Provider_Expecter) Name ¶
func (_e *Provider_Expecter) Name() *Provider_Name_Call
Name is a helper method to define mock.On call
func (*Provider_Expecter) Raw ¶
func (_e *Provider_Expecter) Raw() *Provider_Raw_Call
Raw is a helper method to define mock.On call
type Provider_HealthCheck_Call ¶
Provider_HealthCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthCheck'
func (*Provider_HealthCheck_Call) Return ¶
func (_c *Provider_HealthCheck_Call) Return(_a0 bool, _a1 error) *Provider_HealthCheck_Call
func (*Provider_HealthCheck_Call) Run ¶
func (_c *Provider_HealthCheck_Call) Run(run func(ctx context.Context)) *Provider_HealthCheck_Call
func (*Provider_HealthCheck_Call) RunAndReturn ¶
func (_c *Provider_HealthCheck_Call) RunAndReturn(run func(context.Context) (bool, error)) *Provider_HealthCheck_Call
type Provider_Name_Call ¶
Provider_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Provider_Name_Call) Return ¶
func (_c *Provider_Name_Call) Return(_a0 string) *Provider_Name_Call
func (*Provider_Name_Call) Run ¶
func (_c *Provider_Name_Call) Run(run func()) *Provider_Name_Call
func (*Provider_Name_Call) RunAndReturn ¶
func (_c *Provider_Name_Call) RunAndReturn(run func() string) *Provider_Name_Call
type Provider_Raw_Call ¶
Provider_Raw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Raw'
func (*Provider_Raw_Call) Return ¶
func (_c *Provider_Raw_Call) Return(_a0 interface{}) *Provider_Raw_Call
func (*Provider_Raw_Call) Run ¶
func (_c *Provider_Raw_Call) Run(run func()) *Provider_Raw_Call
func (*Provider_Raw_Call) RunAndReturn ¶
func (_c *Provider_Raw_Call) RunAndReturn(run func() interface{}) *Provider_Raw_Call