Documentation
¶
Index ¶
- type AutoRefreshCache
- type AutoRefreshCache_Expecter
- type AutoRefreshCache_GetOrCreate_Call
- func (_c *AutoRefreshCache_GetOrCreate_Call) Return(_a0 utils.CacheItem, _a1 error) *AutoRefreshCache_GetOrCreate_Call
- func (_c *AutoRefreshCache_GetOrCreate_Call) Run(run func(item utils.CacheItem)) *AutoRefreshCache_GetOrCreate_Call
- func (_c *AutoRefreshCache_GetOrCreate_Call) RunAndReturn(run func(utils.CacheItem) (utils.CacheItem, error)) *AutoRefreshCache_GetOrCreate_Call
- type AutoRefreshCache_Get_Call
- type AutoRefreshCache_Start_Call
- type CacheItem
- type CacheItem_Expecter
- type CacheItem_ID_Call
- type CacheSyncItem
- type CacheSyncItem_Execute_Call
- func (_c *CacheSyncItem_Execute_Call) Return(newItem utils.CacheItem, result utils.CacheSyncAction, err error) *CacheSyncItem_Execute_Call
- func (_c *CacheSyncItem_Execute_Call) Run(run func(ctx context.Context, obj utils.CacheItem)) *CacheSyncItem_Execute_Call
- func (_c *CacheSyncItem_Execute_Call) RunAndReturn(...) *CacheSyncItem_Execute_Call
- type CacheSyncItem_Expecter
- type RateLimiter
- type RateLimiter_Expecter
- type RateLimiter_Wait_Call
- type Sequencer
- type Sequencer_Expecter
- type Sequencer_GetCur_Call
- type Sequencer_GetNext_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoRefreshCache ¶
AutoRefreshCache is an autogenerated mock type for the AutoRefreshCache type
func NewAutoRefreshCache ¶ added in v1.15.1
func NewAutoRefreshCache(t interface {
mock.TestingT
Cleanup(func())
}) *AutoRefreshCache
NewAutoRefreshCache creates a new instance of AutoRefreshCache. 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 (*AutoRefreshCache) EXPECT ¶ added in v1.15.1
func (_m *AutoRefreshCache) EXPECT() *AutoRefreshCache_Expecter
func (*AutoRefreshCache) Get ¶
func (_m *AutoRefreshCache) Get(id string) utils.CacheItem
Get provides a mock function with given fields: id
func (*AutoRefreshCache) GetOrCreate ¶
GetOrCreate provides a mock function with given fields: item
func (*AutoRefreshCache) Start ¶
func (_m *AutoRefreshCache) Start(ctx context.Context)
Start provides a mock function with given fields: ctx
type AutoRefreshCache_Expecter ¶ added in v1.15.1
type AutoRefreshCache_Expecter struct {
// contains filtered or unexported fields
}
func (*AutoRefreshCache_Expecter) Get ¶ added in v1.15.1
func (_e *AutoRefreshCache_Expecter) Get(id interface{}) *AutoRefreshCache_Get_Call
Get is a helper method to define mock.On call
- id string
func (*AutoRefreshCache_Expecter) GetOrCreate ¶ added in v1.15.1
func (_e *AutoRefreshCache_Expecter) GetOrCreate(item interface{}) *AutoRefreshCache_GetOrCreate_Call
GetOrCreate is a helper method to define mock.On call
- item utils.CacheItem
func (*AutoRefreshCache_Expecter) Start ¶ added in v1.15.1
func (_e *AutoRefreshCache_Expecter) Start(ctx interface{}) *AutoRefreshCache_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
type AutoRefreshCache_GetOrCreate_Call ¶ added in v1.15.1
AutoRefreshCache_GetOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreate'
func (*AutoRefreshCache_GetOrCreate_Call) Return ¶ added in v1.15.1
func (_c *AutoRefreshCache_GetOrCreate_Call) Return(_a0 utils.CacheItem, _a1 error) *AutoRefreshCache_GetOrCreate_Call
func (*AutoRefreshCache_GetOrCreate_Call) Run ¶ added in v1.15.1
func (_c *AutoRefreshCache_GetOrCreate_Call) Run(run func(item utils.CacheItem)) *AutoRefreshCache_GetOrCreate_Call
func (*AutoRefreshCache_GetOrCreate_Call) RunAndReturn ¶ added in v1.15.1
func (_c *AutoRefreshCache_GetOrCreate_Call) RunAndReturn(run func(utils.CacheItem) (utils.CacheItem, error)) *AutoRefreshCache_GetOrCreate_Call
type AutoRefreshCache_Get_Call ¶ added in v1.15.1
AutoRefreshCache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*AutoRefreshCache_Get_Call) Return ¶ added in v1.15.1
func (_c *AutoRefreshCache_Get_Call) Return(_a0 utils.CacheItem) *AutoRefreshCache_Get_Call
func (*AutoRefreshCache_Get_Call) Run ¶ added in v1.15.1
func (_c *AutoRefreshCache_Get_Call) Run(run func(id string)) *AutoRefreshCache_Get_Call
func (*AutoRefreshCache_Get_Call) RunAndReturn ¶ added in v1.15.1
func (_c *AutoRefreshCache_Get_Call) RunAndReturn(run func(string) utils.CacheItem) *AutoRefreshCache_Get_Call
type AutoRefreshCache_Start_Call ¶ added in v1.15.1
AutoRefreshCache_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*AutoRefreshCache_Start_Call) Return ¶ added in v1.15.1
func (_c *AutoRefreshCache_Start_Call) Return() *AutoRefreshCache_Start_Call
func (*AutoRefreshCache_Start_Call) Run ¶ added in v1.15.1
func (_c *AutoRefreshCache_Start_Call) Run(run func(ctx context.Context)) *AutoRefreshCache_Start_Call
func (*AutoRefreshCache_Start_Call) RunAndReturn ¶ added in v1.15.1
func (_c *AutoRefreshCache_Start_Call) RunAndReturn(run func(context.Context)) *AutoRefreshCache_Start_Call
type CacheItem ¶
CacheItem is an autogenerated mock type for the CacheItem type
func NewCacheItem ¶ added in v1.15.1
NewCacheItem creates a new instance of CacheItem. 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 (*CacheItem) EXPECT ¶ added in v1.15.1
func (_m *CacheItem) EXPECT() *CacheItem_Expecter
type CacheItem_Expecter ¶ added in v1.15.1
type CacheItem_Expecter struct {
// contains filtered or unexported fields
}
func (*CacheItem_Expecter) ID ¶ added in v1.15.1
func (_e *CacheItem_Expecter) ID() *CacheItem_ID_Call
ID is a helper method to define mock.On call
type CacheItem_ID_Call ¶ added in v1.15.1
CacheItem_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*CacheItem_ID_Call) Return ¶ added in v1.15.1
func (_c *CacheItem_ID_Call) Return(_a0 string) *CacheItem_ID_Call
func (*CacheItem_ID_Call) Run ¶ added in v1.15.1
func (_c *CacheItem_ID_Call) Run(run func()) *CacheItem_ID_Call
func (*CacheItem_ID_Call) RunAndReturn ¶ added in v1.15.1
func (_c *CacheItem_ID_Call) RunAndReturn(run func() string) *CacheItem_ID_Call
type CacheSyncItem ¶ added in v1.15.1
CacheSyncItem is an autogenerated mock type for the CacheSyncItem type
func NewCacheSyncItem ¶ added in v1.15.1
func NewCacheSyncItem(t interface {
mock.TestingT
Cleanup(func())
}) *CacheSyncItem
NewCacheSyncItem creates a new instance of CacheSyncItem. 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 (*CacheSyncItem) EXPECT ¶ added in v1.15.1
func (_m *CacheSyncItem) EXPECT() *CacheSyncItem_Expecter
type CacheSyncItem_Execute_Call ¶ added in v1.15.1
CacheSyncItem_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*CacheSyncItem_Execute_Call) Return ¶ added in v1.15.1
func (_c *CacheSyncItem_Execute_Call) Return(newItem utils.CacheItem, result utils.CacheSyncAction, err error) *CacheSyncItem_Execute_Call
func (*CacheSyncItem_Execute_Call) Run ¶ added in v1.15.1
func (_c *CacheSyncItem_Execute_Call) Run(run func(ctx context.Context, obj utils.CacheItem)) *CacheSyncItem_Execute_Call
func (*CacheSyncItem_Execute_Call) RunAndReturn ¶ added in v1.15.1
func (_c *CacheSyncItem_Execute_Call) RunAndReturn(run func(context.Context, utils.CacheItem) (utils.CacheItem, utils.CacheSyncAction, error)) *CacheSyncItem_Execute_Call
type CacheSyncItem_Expecter ¶ added in v1.15.1
type CacheSyncItem_Expecter struct {
// contains filtered or unexported fields
}
func (*CacheSyncItem_Expecter) Execute ¶ added in v1.15.1
func (_e *CacheSyncItem_Expecter) Execute(ctx interface{}, obj interface{}) *CacheSyncItem_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- obj utils.CacheItem
type RateLimiter ¶
RateLimiter is an autogenerated mock type for the RateLimiter type
func NewRateLimiter ¶ added in v1.15.1
func NewRateLimiter(t interface {
mock.TestingT
Cleanup(func())
}) *RateLimiter
NewRateLimiter creates a new instance of RateLimiter. 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 (*RateLimiter) EXPECT ¶ added in v1.15.1
func (_m *RateLimiter) EXPECT() *RateLimiter_Expecter
type RateLimiter_Expecter ¶ added in v1.15.1
type RateLimiter_Expecter struct {
// contains filtered or unexported fields
}
func (*RateLimiter_Expecter) Wait ¶ added in v1.15.1
func (_e *RateLimiter_Expecter) Wait(ctx interface{}) *RateLimiter_Wait_Call
Wait is a helper method to define mock.On call
- ctx context.Context
type RateLimiter_Wait_Call ¶ added in v1.15.1
RateLimiter_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'
func (*RateLimiter_Wait_Call) Return ¶ added in v1.15.1
func (_c *RateLimiter_Wait_Call) Return(_a0 error) *RateLimiter_Wait_Call
func (*RateLimiter_Wait_Call) Run ¶ added in v1.15.1
func (_c *RateLimiter_Wait_Call) Run(run func(ctx context.Context)) *RateLimiter_Wait_Call
func (*RateLimiter_Wait_Call) RunAndReturn ¶ added in v1.15.1
func (_c *RateLimiter_Wait_Call) RunAndReturn(run func(context.Context) error) *RateLimiter_Wait_Call
type Sequencer ¶
Sequencer is an autogenerated mock type for the Sequencer type
func NewSequencer ¶ added in v1.15.1
NewSequencer creates a new instance of Sequencer. 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 (*Sequencer) EXPECT ¶ added in v1.15.1
func (_m *Sequencer) EXPECT() *Sequencer_Expecter
type Sequencer_Expecter ¶ added in v1.15.1
type Sequencer_Expecter struct {
// contains filtered or unexported fields
}
func (*Sequencer_Expecter) GetCur ¶ added in v1.15.1
func (_e *Sequencer_Expecter) GetCur() *Sequencer_GetCur_Call
GetCur is a helper method to define mock.On call
func (*Sequencer_Expecter) GetNext ¶ added in v1.15.1
func (_e *Sequencer_Expecter) GetNext() *Sequencer_GetNext_Call
GetNext is a helper method to define mock.On call
type Sequencer_GetCur_Call ¶ added in v1.15.1
Sequencer_GetCur_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCur'
func (*Sequencer_GetCur_Call) Return ¶ added in v1.15.1
func (_c *Sequencer_GetCur_Call) Return(_a0 uint64) *Sequencer_GetCur_Call
func (*Sequencer_GetCur_Call) Run ¶ added in v1.15.1
func (_c *Sequencer_GetCur_Call) Run(run func()) *Sequencer_GetCur_Call
func (*Sequencer_GetCur_Call) RunAndReturn ¶ added in v1.15.1
func (_c *Sequencer_GetCur_Call) RunAndReturn(run func() uint64) *Sequencer_GetCur_Call
type Sequencer_GetNext_Call ¶ added in v1.15.1
Sequencer_GetNext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNext'
func (*Sequencer_GetNext_Call) Return ¶ added in v1.15.1
func (_c *Sequencer_GetNext_Call) Return(_a0 uint64) *Sequencer_GetNext_Call
func (*Sequencer_GetNext_Call) Run ¶ added in v1.15.1
func (_c *Sequencer_GetNext_Call) Run(run func()) *Sequencer_GetNext_Call
func (*Sequencer_GetNext_Call) RunAndReturn ¶ added in v1.15.1
func (_c *Sequencer_GetNext_Call) RunAndReturn(run func() uint64) *Sequencer_GetNext_Call