Documentation
¶
Index ¶
- type AutoRefresh
- func (_m *AutoRefresh) DeleteDelayed(id string) error
- func (_m *AutoRefresh) EXPECT() *AutoRefresh_Expecter
- func (_m *AutoRefresh) Get(id string) (cache.Item, error)
- func (_m *AutoRefresh) GetOrCreate(id string, item cache.Item) (cache.Item, error)
- func (_m *AutoRefresh) Start(ctx context.Context) error
- type AutoRefresh_DeleteDelayed_Call
- func (_c *AutoRefresh_DeleteDelayed_Call) Return(_a0 error) *AutoRefresh_DeleteDelayed_Call
- func (_c *AutoRefresh_DeleteDelayed_Call) Run(run func(id string)) *AutoRefresh_DeleteDelayed_Call
- func (_c *AutoRefresh_DeleteDelayed_Call) RunAndReturn(run func(string) error) *AutoRefresh_DeleteDelayed_Call
- type AutoRefresh_Expecter
- func (_e *AutoRefresh_Expecter) DeleteDelayed(id interface{}) *AutoRefresh_DeleteDelayed_Call
- func (_e *AutoRefresh_Expecter) Get(id interface{}) *AutoRefresh_Get_Call
- func (_e *AutoRefresh_Expecter) GetOrCreate(id interface{}, item interface{}) *AutoRefresh_GetOrCreate_Call
- func (_e *AutoRefresh_Expecter) Start(ctx interface{}) *AutoRefresh_Start_Call
- type AutoRefresh_GetOrCreate_Call
- func (_c *AutoRefresh_GetOrCreate_Call) Return(_a0 cache.Item, _a1 error) *AutoRefresh_GetOrCreate_Call
- func (_c *AutoRefresh_GetOrCreate_Call) Run(run func(id string, item cache.Item)) *AutoRefresh_GetOrCreate_Call
- func (_c *AutoRefresh_GetOrCreate_Call) RunAndReturn(run func(string, cache.Item) (cache.Item, error)) *AutoRefresh_GetOrCreate_Call
- type AutoRefresh_Get_Call
- type AutoRefresh_Start_Call
- type CreateBatchesFunc
- type CreateBatchesFunc_Execute_Call
- func (_c *CreateBatchesFunc_Execute_Call) Return(batches [][]cache.ItemWrapper, err error) *CreateBatchesFunc_Execute_Call
- func (_c *CreateBatchesFunc_Execute_Call) Run(run func(ctx context.Context, snapshot []cache.ItemWrapper)) *CreateBatchesFunc_Execute_Call
- func (_c *CreateBatchesFunc_Execute_Call) RunAndReturn(run func(context.Context, []cache.ItemWrapper) ([][]cache.ItemWrapper, error)) *CreateBatchesFunc_Execute_Call
- type CreateBatchesFunc_Expecter
- type Item
- type ItemWrapper
- type ItemWrapper_Expecter
- type ItemWrapper_GetID_Call
- type ItemWrapper_GetItem_Call
- type Item_Expecter
- type Item_IsTerminal_Call
- type Option
- type Option_Execute_Call
- type Option_Expecter
- type SyncFunc
- type SyncFunc_Execute_Call
- func (_c *SyncFunc_Execute_Call) Return(updatedBatch []cache.ItemSyncResponse, err error) *SyncFunc_Execute_Call
- func (_c *SyncFunc_Execute_Call) Run(run func(ctx context.Context, batch []cache.ItemWrapper)) *SyncFunc_Execute_Call
- func (_c *SyncFunc_Execute_Call) RunAndReturn(...) *SyncFunc_Execute_Call
- type SyncFunc_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoRefresh ¶
AutoRefresh is an autogenerated mock type for the AutoRefresh type
func NewAutoRefresh ¶ added in v1.15.1
func NewAutoRefresh(t interface {
mock.TestingT
Cleanup(func())
}) *AutoRefresh
NewAutoRefresh creates a new instance of AutoRefresh. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AutoRefresh) DeleteDelayed ¶
func (_m *AutoRefresh) DeleteDelayed(id string) error
DeleteDelayed provides a mock function with given fields: id
func (*AutoRefresh) EXPECT ¶ added in v1.15.1
func (_m *AutoRefresh) EXPECT() *AutoRefresh_Expecter
func (*AutoRefresh) Get ¶
func (_m *AutoRefresh) Get(id string) (cache.Item, error)
Get provides a mock function with given fields: id
func (*AutoRefresh) GetOrCreate ¶
GetOrCreate provides a mock function with given fields: id, item
type AutoRefresh_DeleteDelayed_Call ¶ added in v1.15.1
AutoRefresh_DeleteDelayed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDelayed'
func (*AutoRefresh_DeleteDelayed_Call) Return ¶ added in v1.15.1
func (_c *AutoRefresh_DeleteDelayed_Call) Return(_a0 error) *AutoRefresh_DeleteDelayed_Call
func (*AutoRefresh_DeleteDelayed_Call) Run ¶ added in v1.15.1
func (_c *AutoRefresh_DeleteDelayed_Call) Run(run func(id string)) *AutoRefresh_DeleteDelayed_Call
func (*AutoRefresh_DeleteDelayed_Call) RunAndReturn ¶ added in v1.15.1
func (_c *AutoRefresh_DeleteDelayed_Call) RunAndReturn(run func(string) error) *AutoRefresh_DeleteDelayed_Call
type AutoRefresh_Expecter ¶ added in v1.15.1
type AutoRefresh_Expecter struct {
// contains filtered or unexported fields
}
func (*AutoRefresh_Expecter) DeleteDelayed ¶ added in v1.15.1
func (_e *AutoRefresh_Expecter) DeleteDelayed(id interface{}) *AutoRefresh_DeleteDelayed_Call
DeleteDelayed is a helper method to define mock.On call
- id string
func (*AutoRefresh_Expecter) Get ¶ added in v1.15.1
func (_e *AutoRefresh_Expecter) Get(id interface{}) *AutoRefresh_Get_Call
Get is a helper method to define mock.On call
- id string
func (*AutoRefresh_Expecter) GetOrCreate ¶ added in v1.15.1
func (_e *AutoRefresh_Expecter) GetOrCreate(id interface{}, item interface{}) *AutoRefresh_GetOrCreate_Call
GetOrCreate is a helper method to define mock.On call
- id string
- item cache.Item
func (*AutoRefresh_Expecter) Start ¶ added in v1.15.1
func (_e *AutoRefresh_Expecter) Start(ctx interface{}) *AutoRefresh_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
type AutoRefresh_GetOrCreate_Call ¶ added in v1.15.1
AutoRefresh_GetOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreate'
func (*AutoRefresh_GetOrCreate_Call) Return ¶ added in v1.15.1
func (_c *AutoRefresh_GetOrCreate_Call) Return(_a0 cache.Item, _a1 error) *AutoRefresh_GetOrCreate_Call
func (*AutoRefresh_GetOrCreate_Call) Run ¶ added in v1.15.1
func (_c *AutoRefresh_GetOrCreate_Call) Run(run func(id string, item cache.Item)) *AutoRefresh_GetOrCreate_Call
func (*AutoRefresh_GetOrCreate_Call) RunAndReturn ¶ added in v1.15.1
func (_c *AutoRefresh_GetOrCreate_Call) RunAndReturn(run func(string, cache.Item) (cache.Item, error)) *AutoRefresh_GetOrCreate_Call
type AutoRefresh_Get_Call ¶ added in v1.15.1
AutoRefresh_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*AutoRefresh_Get_Call) Return ¶ added in v1.15.1
func (_c *AutoRefresh_Get_Call) Return(_a0 cache.Item, _a1 error) *AutoRefresh_Get_Call
func (*AutoRefresh_Get_Call) Run ¶ added in v1.15.1
func (_c *AutoRefresh_Get_Call) Run(run func(id string)) *AutoRefresh_Get_Call
func (*AutoRefresh_Get_Call) RunAndReturn ¶ added in v1.15.1
func (_c *AutoRefresh_Get_Call) RunAndReturn(run func(string) (cache.Item, error)) *AutoRefresh_Get_Call
type AutoRefresh_Start_Call ¶ added in v1.15.1
AutoRefresh_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*AutoRefresh_Start_Call) Return ¶ added in v1.15.1
func (_c *AutoRefresh_Start_Call) Return(_a0 error) *AutoRefresh_Start_Call
func (*AutoRefresh_Start_Call) Run ¶ added in v1.15.1
func (_c *AutoRefresh_Start_Call) Run(run func(ctx context.Context)) *AutoRefresh_Start_Call
func (*AutoRefresh_Start_Call) RunAndReturn ¶ added in v1.15.1
func (_c *AutoRefresh_Start_Call) RunAndReturn(run func(context.Context) error) *AutoRefresh_Start_Call
type CreateBatchesFunc ¶ added in v1.15.1
CreateBatchesFunc is an autogenerated mock type for the CreateBatchesFunc type
func NewCreateBatchesFunc ¶ added in v1.15.1
func NewCreateBatchesFunc(t interface {
mock.TestingT
Cleanup(func())
}) *CreateBatchesFunc
NewCreateBatchesFunc creates a new instance of CreateBatchesFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CreateBatchesFunc) EXPECT ¶ added in v1.15.1
func (_m *CreateBatchesFunc) EXPECT() *CreateBatchesFunc_Expecter
func (*CreateBatchesFunc) Execute ¶ added in v1.15.1
func (_m *CreateBatchesFunc) Execute(ctx context.Context, snapshot []cache.ItemWrapper) ([][]cache.ItemWrapper, error)
Execute provides a mock function with given fields: ctx, snapshot
type CreateBatchesFunc_Execute_Call ¶ added in v1.15.1
CreateBatchesFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*CreateBatchesFunc_Execute_Call) Return ¶ added in v1.15.1
func (_c *CreateBatchesFunc_Execute_Call) Return(batches [][]cache.ItemWrapper, err error) *CreateBatchesFunc_Execute_Call
func (*CreateBatchesFunc_Execute_Call) Run ¶ added in v1.15.1
func (_c *CreateBatchesFunc_Execute_Call) Run(run func(ctx context.Context, snapshot []cache.ItemWrapper)) *CreateBatchesFunc_Execute_Call
func (*CreateBatchesFunc_Execute_Call) RunAndReturn ¶ added in v1.15.1
func (_c *CreateBatchesFunc_Execute_Call) RunAndReturn(run func(context.Context, []cache.ItemWrapper) ([][]cache.ItemWrapper, error)) *CreateBatchesFunc_Execute_Call
type CreateBatchesFunc_Expecter ¶ added in v1.15.1
type CreateBatchesFunc_Expecter struct {
// contains filtered or unexported fields
}
func (*CreateBatchesFunc_Expecter) Execute ¶ added in v1.15.1
func (_e *CreateBatchesFunc_Expecter) Execute(ctx interface{}, snapshot interface{}) *CreateBatchesFunc_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- snapshot []cache.ItemWrapper
type Item ¶
Item is an autogenerated mock type for the Item type
func NewItem ¶ added in v1.15.1
NewItem creates a new instance of Item. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Item) EXPECT ¶ added in v1.15.1
func (_m *Item) EXPECT() *Item_Expecter
func (*Item) IsTerminal ¶ added in v1.12.0
IsTerminal provides a mock function with no fields
type ItemWrapper ¶
ItemWrapper is an autogenerated mock type for the ItemWrapper type
func NewItemWrapper ¶ added in v1.15.1
func NewItemWrapper(t interface {
mock.TestingT
Cleanup(func())
}) *ItemWrapper
NewItemWrapper creates a new instance of ItemWrapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ItemWrapper) EXPECT ¶ added in v1.15.1
func (_m *ItemWrapper) EXPECT() *ItemWrapper_Expecter
func (*ItemWrapper) GetID ¶
func (_m *ItemWrapper) GetID() string
GetID provides a mock function with no fields
func (*ItemWrapper) GetItem ¶
func (_m *ItemWrapper) GetItem() cache.Item
GetItem provides a mock function with no fields
type ItemWrapper_Expecter ¶ added in v1.15.1
type ItemWrapper_Expecter struct {
// contains filtered or unexported fields
}
func (*ItemWrapper_Expecter) GetID ¶ added in v1.15.1
func (_e *ItemWrapper_Expecter) GetID() *ItemWrapper_GetID_Call
GetID is a helper method to define mock.On call
func (*ItemWrapper_Expecter) GetItem ¶ added in v1.15.1
func (_e *ItemWrapper_Expecter) GetItem() *ItemWrapper_GetItem_Call
GetItem is a helper method to define mock.On call
type ItemWrapper_GetID_Call ¶ added in v1.15.1
ItemWrapper_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*ItemWrapper_GetID_Call) Return ¶ added in v1.15.1
func (_c *ItemWrapper_GetID_Call) Return(_a0 string) *ItemWrapper_GetID_Call
func (*ItemWrapper_GetID_Call) Run ¶ added in v1.15.1
func (_c *ItemWrapper_GetID_Call) Run(run func()) *ItemWrapper_GetID_Call
func (*ItemWrapper_GetID_Call) RunAndReturn ¶ added in v1.15.1
func (_c *ItemWrapper_GetID_Call) RunAndReturn(run func() string) *ItemWrapper_GetID_Call
type ItemWrapper_GetItem_Call ¶ added in v1.15.1
ItemWrapper_GetItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetItem'
func (*ItemWrapper_GetItem_Call) Return ¶ added in v1.15.1
func (_c *ItemWrapper_GetItem_Call) Return(_a0 cache.Item) *ItemWrapper_GetItem_Call
func (*ItemWrapper_GetItem_Call) Run ¶ added in v1.15.1
func (_c *ItemWrapper_GetItem_Call) Run(run func()) *ItemWrapper_GetItem_Call
func (*ItemWrapper_GetItem_Call) RunAndReturn ¶ added in v1.15.1
func (_c *ItemWrapper_GetItem_Call) RunAndReturn(run func() cache.Item) *ItemWrapper_GetItem_Call
type Item_Expecter ¶ added in v1.15.1
type Item_Expecter struct {
// contains filtered or unexported fields
}
func (*Item_Expecter) IsTerminal ¶ added in v1.15.1
func (_e *Item_Expecter) IsTerminal() *Item_IsTerminal_Call
IsTerminal is a helper method to define mock.On call
type Item_IsTerminal_Call ¶ added in v1.15.1
Item_IsTerminal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsTerminal'
func (*Item_IsTerminal_Call) Return ¶ added in v1.15.1
func (_c *Item_IsTerminal_Call) Return(_a0 bool) *Item_IsTerminal_Call
func (*Item_IsTerminal_Call) Run ¶ added in v1.15.1
func (_c *Item_IsTerminal_Call) Run(run func()) *Item_IsTerminal_Call
func (*Item_IsTerminal_Call) RunAndReturn ¶ added in v1.15.1
func (_c *Item_IsTerminal_Call) RunAndReturn(run func() bool) *Item_IsTerminal_Call
type Option ¶ added in v1.15.1
Option is an autogenerated mock type for the Option type
func NewOption ¶ added in v1.15.1
NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Option) EXPECT ¶ added in v1.15.1
func (_m *Option) EXPECT() *Option_Expecter
type Option_Execute_Call ¶ added in v1.15.1
Option_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*Option_Execute_Call) Return ¶ added in v1.15.1
func (_c *Option_Execute_Call) Return() *Option_Execute_Call
func (*Option_Execute_Call) Run ¶ added in v1.15.1
func (_c *Option_Execute_Call) Run(run func(_a0 *cache.Options)) *Option_Execute_Call
func (*Option_Execute_Call) RunAndReturn ¶ added in v1.15.1
func (_c *Option_Execute_Call) RunAndReturn(run func(*cache.Options)) *Option_Execute_Call
type Option_Expecter ¶ added in v1.15.1
type Option_Expecter struct {
// contains filtered or unexported fields
}
func (*Option_Expecter) Execute ¶ added in v1.15.1
func (_e *Option_Expecter) Execute(_a0 interface{}) *Option_Execute_Call
Execute is a helper method to define mock.On call
- _a0 *cache.Options
type SyncFunc ¶ added in v1.15.1
SyncFunc is an autogenerated mock type for the SyncFunc type
func NewSyncFunc ¶ added in v1.15.1
NewSyncFunc creates a new instance of SyncFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SyncFunc) EXPECT ¶ added in v1.15.1
func (_m *SyncFunc) EXPECT() *SyncFunc_Expecter
func (*SyncFunc) Execute ¶ added in v1.15.1
func (_m *SyncFunc) Execute(ctx context.Context, batch []cache.ItemWrapper) ([]cache.ItemSyncResponse, error)
Execute provides a mock function with given fields: ctx, batch
type SyncFunc_Execute_Call ¶ added in v1.15.1
SyncFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*SyncFunc_Execute_Call) Return ¶ added in v1.15.1
func (_c *SyncFunc_Execute_Call) Return(updatedBatch []cache.ItemSyncResponse, err error) *SyncFunc_Execute_Call
func (*SyncFunc_Execute_Call) Run ¶ added in v1.15.1
func (_c *SyncFunc_Execute_Call) Run(run func(ctx context.Context, batch []cache.ItemWrapper)) *SyncFunc_Execute_Call
func (*SyncFunc_Execute_Call) RunAndReturn ¶ added in v1.15.1
func (_c *SyncFunc_Execute_Call) RunAndReturn(run func(context.Context, []cache.ItemWrapper) ([]cache.ItemSyncResponse, error)) *SyncFunc_Execute_Call
type SyncFunc_Expecter ¶ added in v1.15.1
type SyncFunc_Expecter struct {
// contains filtered or unexported fields
}
func (*SyncFunc_Expecter) Execute ¶ added in v1.15.1
func (_e *SyncFunc_Expecter) Execute(ctx interface{}, batch interface{}) *SyncFunc_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- batch []cache.ItemWrapper