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, key cachekey.CacheKey, value interface{})) *AsyncWriter_Queue_Call
- func (_c *AsyncWriter_Queue_Call) RunAndReturn(run func(context.Context, cachekey.CacheKey, interface{}) error) *AsyncWriter_Queue_Call
- type CacheProvider
- func (_m *CacheProvider) BulkWriter(ctx context.Context, opts ...cache.WriterOption) (cache.AsyncWriter, error)
- func (_m *CacheProvider) Close(ctx context.Context) error
- func (_m *CacheProvider) EXPECT() *CacheProvider_Expecter
- func (_m *CacheProvider) Get(ctx context.Context, key cachekey.CacheKey) *cache.CacheResult
- func (_m *CacheProvider) HealthCheck(ctx context.Context) (bool, error)
- func (_m *CacheProvider) Name() string
- type CacheProvider_BulkWriter_Call
- func (_c *CacheProvider_BulkWriter_Call) Return(_a0 cache.AsyncWriter, _a1 error) *CacheProvider_BulkWriter_Call
- func (_c *CacheProvider_BulkWriter_Call) Run(run func(ctx context.Context, opts ...cache.WriterOption)) *CacheProvider_BulkWriter_Call
- func (_c *CacheProvider_BulkWriter_Call) RunAndReturn(run func(context.Context, ...cache.WriterOption) (cache.AsyncWriter, error)) *CacheProvider_BulkWriter_Call
- type CacheProvider_Close_Call
- type CacheProvider_Expecter
- func (_e *CacheProvider_Expecter) BulkWriter(ctx interface{}, opts ...interface{}) *CacheProvider_BulkWriter_Call
- func (_e *CacheProvider_Expecter) Close(ctx interface{}) *CacheProvider_Close_Call
- func (_e *CacheProvider_Expecter) Get(ctx interface{}, key interface{}) *CacheProvider_Get_Call
- func (_e *CacheProvider_Expecter) HealthCheck(ctx interface{}) *CacheProvider_HealthCheck_Call
- func (_e *CacheProvider_Expecter) Name() *CacheProvider_Name_Call
- type CacheProvider_Get_Call
- func (_c *CacheProvider_Get_Call) Return(_a0 *cache.CacheResult) *CacheProvider_Get_Call
- func (_c *CacheProvider_Get_Call) Run(run func(ctx context.Context, key cachekey.CacheKey)) *CacheProvider_Get_Call
- func (_c *CacheProvider_Get_Call) RunAndReturn(run func(context.Context, cachekey.CacheKey) *cache.CacheResult) *CacheProvider_Get_Call
- type CacheProvider_HealthCheck_Call
- func (_c *CacheProvider_HealthCheck_Call) Return(_a0 bool, _a1 error) *CacheProvider_HealthCheck_Call
- func (_c *CacheProvider_HealthCheck_Call) Run(run func(ctx context.Context)) *CacheProvider_HealthCheck_Call
- func (_c *CacheProvider_HealthCheck_Call) RunAndReturn(run func(context.Context) (bool, error)) *CacheProvider_HealthCheck_Call
- type CacheProvider_Name_Call
- type CacheReader
- func (_m *CacheReader) Close(ctx context.Context) error
- func (_m *CacheReader) EXPECT() *CacheReader_Expecter
- func (_m *CacheReader) Get(ctx context.Context, key cachekey.CacheKey) *cache.CacheResult
- func (_m *CacheReader) HealthCheck(ctx context.Context) (bool, error)
- func (_m *CacheReader) Name() string
- type CacheReader_Close_Call
- type CacheReader_Expecter
- func (_e *CacheReader_Expecter) Close(ctx interface{}) *CacheReader_Close_Call
- func (_e *CacheReader_Expecter) Get(ctx interface{}, key interface{}) *CacheReader_Get_Call
- func (_e *CacheReader_Expecter) HealthCheck(ctx interface{}) *CacheReader_HealthCheck_Call
- func (_e *CacheReader_Expecter) Name() *CacheReader_Name_Call
- type CacheReader_Get_Call
- func (_c *CacheReader_Get_Call) Return(_a0 *cache.CacheResult) *CacheReader_Get_Call
- func (_c *CacheReader_Get_Call) Run(run func(ctx context.Context, key cachekey.CacheKey)) *CacheReader_Get_Call
- func (_c *CacheReader_Get_Call) RunAndReturn(run func(context.Context, cachekey.CacheKey) *cache.CacheResult) *CacheReader_Get_Call
- type CacheReader_HealthCheck_Call
- func (_c *CacheReader_HealthCheck_Call) Return(_a0 bool, _a1 error) *CacheReader_HealthCheck_Call
- func (_c *CacheReader_HealthCheck_Call) Run(run func(ctx context.Context)) *CacheReader_HealthCheck_Call
- func (_c *CacheReader_HealthCheck_Call) RunAndReturn(run func(context.Context) (bool, error)) *CacheReader_HealthCheck_Call
- type CacheReader_Name_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{}, key interface{}, value interface{}) *AsyncWriter_Queue_Call
Queue is a helper method to define mock.On call
- ctx context.Context
- key cachekey.CacheKey
- value 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, key cachekey.CacheKey, value interface{})) *AsyncWriter_Queue_Call
func (*AsyncWriter_Queue_Call) RunAndReturn ¶
func (_c *AsyncWriter_Queue_Call) RunAndReturn(run func(context.Context, cachekey.CacheKey, interface{}) error) *AsyncWriter_Queue_Call
type CacheProvider ¶
CacheProvider is an autogenerated mock type for the CacheProvider type
func NewCacheProvider ¶
func NewCacheProvider(t mockConstructorTestingTNewCacheProvider) *CacheProvider
NewCacheProvider creates a new instance of CacheProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CacheProvider) BulkWriter ¶
func (_m *CacheProvider) BulkWriter(ctx context.Context, opts ...cache.WriterOption) (cache.AsyncWriter, error)
BulkWriter provides a mock function with given fields: ctx, opts
func (*CacheProvider) Close ¶
func (_m *CacheProvider) Close(ctx context.Context) error
Close provides a mock function with given fields: ctx
func (*CacheProvider) EXPECT ¶
func (_m *CacheProvider) EXPECT() *CacheProvider_Expecter
func (*CacheProvider) Get ¶
func (_m *CacheProvider) Get(ctx context.Context, key cachekey.CacheKey) *cache.CacheResult
Get provides a mock function with given fields: ctx, key
func (*CacheProvider) HealthCheck ¶
func (_m *CacheProvider) HealthCheck(ctx context.Context) (bool, error)
HealthCheck provides a mock function with given fields: ctx
func (*CacheProvider) Name ¶
func (_m *CacheProvider) Name() string
Name provides a mock function with given fields:
type CacheProvider_BulkWriter_Call ¶
CacheProvider_BulkWriter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkWriter'
func (*CacheProvider_BulkWriter_Call) Return ¶
func (_c *CacheProvider_BulkWriter_Call) Return(_a0 cache.AsyncWriter, _a1 error) *CacheProvider_BulkWriter_Call
func (*CacheProvider_BulkWriter_Call) Run ¶
func (_c *CacheProvider_BulkWriter_Call) Run(run func(ctx context.Context, opts ...cache.WriterOption)) *CacheProvider_BulkWriter_Call
func (*CacheProvider_BulkWriter_Call) RunAndReturn ¶
func (_c *CacheProvider_BulkWriter_Call) RunAndReturn(run func(context.Context, ...cache.WriterOption) (cache.AsyncWriter, error)) *CacheProvider_BulkWriter_Call
type CacheProvider_Close_Call ¶
CacheProvider_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*CacheProvider_Close_Call) Return ¶
func (_c *CacheProvider_Close_Call) Return(_a0 error) *CacheProvider_Close_Call
func (*CacheProvider_Close_Call) Run ¶
func (_c *CacheProvider_Close_Call) Run(run func(ctx context.Context)) *CacheProvider_Close_Call
func (*CacheProvider_Close_Call) RunAndReturn ¶
func (_c *CacheProvider_Close_Call) RunAndReturn(run func(context.Context) error) *CacheProvider_Close_Call
type CacheProvider_Expecter ¶
type CacheProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*CacheProvider_Expecter) BulkWriter ¶
func (_e *CacheProvider_Expecter) BulkWriter(ctx interface{}, opts ...interface{}) *CacheProvider_BulkWriter_Call
BulkWriter is a helper method to define mock.On call
- ctx context.Context
- opts ...cache.WriterOption
func (*CacheProvider_Expecter) Close ¶
func (_e *CacheProvider_Expecter) Close(ctx interface{}) *CacheProvider_Close_Call
Close is a helper method to define mock.On call
- ctx context.Context
func (*CacheProvider_Expecter) Get ¶
func (_e *CacheProvider_Expecter) Get(ctx interface{}, key interface{}) *CacheProvider_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key cachekey.CacheKey
func (*CacheProvider_Expecter) HealthCheck ¶
func (_e *CacheProvider_Expecter) HealthCheck(ctx interface{}) *CacheProvider_HealthCheck_Call
HealthCheck is a helper method to define mock.On call
- ctx context.Context
func (*CacheProvider_Expecter) Name ¶
func (_e *CacheProvider_Expecter) Name() *CacheProvider_Name_Call
Name is a helper method to define mock.On call
type CacheProvider_Get_Call ¶
CacheProvider_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*CacheProvider_Get_Call) Return ¶
func (_c *CacheProvider_Get_Call) Return(_a0 *cache.CacheResult) *CacheProvider_Get_Call
func (*CacheProvider_Get_Call) Run ¶
func (_c *CacheProvider_Get_Call) Run(run func(ctx context.Context, key cachekey.CacheKey)) *CacheProvider_Get_Call
func (*CacheProvider_Get_Call) RunAndReturn ¶
func (_c *CacheProvider_Get_Call) RunAndReturn(run func(context.Context, cachekey.CacheKey) *cache.CacheResult) *CacheProvider_Get_Call
type CacheProvider_HealthCheck_Call ¶
CacheProvider_HealthCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthCheck'
func (*CacheProvider_HealthCheck_Call) Return ¶
func (_c *CacheProvider_HealthCheck_Call) Return(_a0 bool, _a1 error) *CacheProvider_HealthCheck_Call
func (*CacheProvider_HealthCheck_Call) Run ¶
func (_c *CacheProvider_HealthCheck_Call) Run(run func(ctx context.Context)) *CacheProvider_HealthCheck_Call
func (*CacheProvider_HealthCheck_Call) RunAndReturn ¶
func (_c *CacheProvider_HealthCheck_Call) RunAndReturn(run func(context.Context) (bool, error)) *CacheProvider_HealthCheck_Call
type CacheProvider_Name_Call ¶
CacheProvider_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*CacheProvider_Name_Call) Return ¶
func (_c *CacheProvider_Name_Call) Return(_a0 string) *CacheProvider_Name_Call
func (*CacheProvider_Name_Call) Run ¶
func (_c *CacheProvider_Name_Call) Run(run func()) *CacheProvider_Name_Call
func (*CacheProvider_Name_Call) RunAndReturn ¶
func (_c *CacheProvider_Name_Call) RunAndReturn(run func() string) *CacheProvider_Name_Call
type CacheReader ¶
CacheReader is an autogenerated mock type for the CacheReader type
func NewCacheReader ¶
func NewCacheReader(t mockConstructorTestingTNewCacheReader) *CacheReader
NewCacheReader creates a new instance of CacheReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CacheReader) Close ¶
func (_m *CacheReader) Close(ctx context.Context) error
Close provides a mock function with given fields: ctx
func (*CacheReader) EXPECT ¶
func (_m *CacheReader) EXPECT() *CacheReader_Expecter
func (*CacheReader) Get ¶
func (_m *CacheReader) Get(ctx context.Context, key cachekey.CacheKey) *cache.CacheResult
Get provides a mock function with given fields: ctx, key
func (*CacheReader) HealthCheck ¶
func (_m *CacheReader) HealthCheck(ctx context.Context) (bool, error)
HealthCheck provides a mock function with given fields: ctx
func (*CacheReader) Name ¶
func (_m *CacheReader) Name() string
Name provides a mock function with given fields:
type CacheReader_Close_Call ¶
CacheReader_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*CacheReader_Close_Call) Return ¶
func (_c *CacheReader_Close_Call) Return(_a0 error) *CacheReader_Close_Call
func (*CacheReader_Close_Call) Run ¶
func (_c *CacheReader_Close_Call) Run(run func(ctx context.Context)) *CacheReader_Close_Call
func (*CacheReader_Close_Call) RunAndReturn ¶
func (_c *CacheReader_Close_Call) RunAndReturn(run func(context.Context) error) *CacheReader_Close_Call
type CacheReader_Expecter ¶
type CacheReader_Expecter struct {
// contains filtered or unexported fields
}
func (*CacheReader_Expecter) Close ¶
func (_e *CacheReader_Expecter) Close(ctx interface{}) *CacheReader_Close_Call
Close is a helper method to define mock.On call
- ctx context.Context
func (*CacheReader_Expecter) Get ¶
func (_e *CacheReader_Expecter) Get(ctx interface{}, key interface{}) *CacheReader_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key cachekey.CacheKey
func (*CacheReader_Expecter) HealthCheck ¶
func (_e *CacheReader_Expecter) HealthCheck(ctx interface{}) *CacheReader_HealthCheck_Call
HealthCheck is a helper method to define mock.On call
- ctx context.Context
func (*CacheReader_Expecter) Name ¶
func (_e *CacheReader_Expecter) Name() *CacheReader_Name_Call
Name is a helper method to define mock.On call
type CacheReader_Get_Call ¶
CacheReader_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*CacheReader_Get_Call) Return ¶
func (_c *CacheReader_Get_Call) Return(_a0 *cache.CacheResult) *CacheReader_Get_Call
func (*CacheReader_Get_Call) Run ¶
func (_c *CacheReader_Get_Call) Run(run func(ctx context.Context, key cachekey.CacheKey)) *CacheReader_Get_Call
func (*CacheReader_Get_Call) RunAndReturn ¶
func (_c *CacheReader_Get_Call) RunAndReturn(run func(context.Context, cachekey.CacheKey) *cache.CacheResult) *CacheReader_Get_Call
type CacheReader_HealthCheck_Call ¶
CacheReader_HealthCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthCheck'
func (*CacheReader_HealthCheck_Call) Return ¶
func (_c *CacheReader_HealthCheck_Call) Return(_a0 bool, _a1 error) *CacheReader_HealthCheck_Call
func (*CacheReader_HealthCheck_Call) Run ¶
func (_c *CacheReader_HealthCheck_Call) Run(run func(ctx context.Context)) *CacheReader_HealthCheck_Call
func (*CacheReader_HealthCheck_Call) RunAndReturn ¶
func (_c *CacheReader_HealthCheck_Call) RunAndReturn(run func(context.Context) (bool, error)) *CacheReader_HealthCheck_Call
type CacheReader_Name_Call ¶
CacheReader_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*CacheReader_Name_Call) Return ¶
func (_c *CacheReader_Name_Call) Return(_a0 string) *CacheReader_Name_Call
func (*CacheReader_Name_Call) Run ¶
func (_c *CacheReader_Name_Call) Run(run func()) *CacheReader_Name_Call
func (*CacheReader_Name_Call) RunAndReturn ¶
func (_c *CacheReader_Name_Call) RunAndReturn(run func() string) *CacheReader_Name_Call