Documentation ¶
Index ¶
- type AutoRefreshCache
- func (_m *AutoRefreshCache) Get(id string) utils.CacheItem
- func (_m *AutoRefreshCache) GetOrCreate(item utils.CacheItem) (utils.CacheItem, error)
- func (_m *AutoRefreshCache) OnGet(id string) *AutoRefreshCache_Get
- func (_m *AutoRefreshCache) OnGetMatch(matchers ...interface{}) *AutoRefreshCache_Get
- func (_m *AutoRefreshCache) OnGetOrCreate(item utils.CacheItem) *AutoRefreshCache_GetOrCreate
- func (_m *AutoRefreshCache) OnGetOrCreateMatch(matchers ...interface{}) *AutoRefreshCache_GetOrCreate
- func (_m *AutoRefreshCache) Start(ctx context.Context)
- type AutoRefreshCache_Get
- type AutoRefreshCache_GetOrCreate
- type CacheItem
- type CacheItem_ID
- type RateLimiter
- type RateLimiter_Wait
- type Sequencer
- func (_m *Sequencer) GetCur() uint64
- func (_m *Sequencer) GetNext() uint64
- func (_m *Sequencer) OnGetCur() *Sequencer_GetCur
- func (_m *Sequencer) OnGetCurMatch(matchers ...interface{}) *Sequencer_GetCur
- func (_m *Sequencer) OnGetNext() *Sequencer_GetNext
- func (_m *Sequencer) OnGetNextMatch(matchers ...interface{}) *Sequencer_GetNext
- type Sequencer_GetCur
- type Sequencer_GetNext
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 (*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) OnGet ¶ added in v0.2.22
func (_m *AutoRefreshCache) OnGet(id string) *AutoRefreshCache_Get
func (*AutoRefreshCache) OnGetMatch ¶ added in v0.2.22
func (_m *AutoRefreshCache) OnGetMatch(matchers ...interface{}) *AutoRefreshCache_Get
func (*AutoRefreshCache) OnGetOrCreate ¶ added in v0.2.22
func (_m *AutoRefreshCache) OnGetOrCreate(item utils.CacheItem) *AutoRefreshCache_GetOrCreate
func (*AutoRefreshCache) OnGetOrCreateMatch ¶ added in v0.2.22
func (_m *AutoRefreshCache) OnGetOrCreateMatch(matchers ...interface{}) *AutoRefreshCache_GetOrCreate
func (*AutoRefreshCache) Start ¶
func (_m *AutoRefreshCache) Start(ctx context.Context)
Start provides a mock function with given fields: ctx
type AutoRefreshCache_Get ¶ added in v0.2.22
func (AutoRefreshCache_Get) Return ¶ added in v0.2.22
func (_m AutoRefreshCache_Get) Return(_a0 utils.CacheItem) *AutoRefreshCache_Get
type AutoRefreshCache_GetOrCreate ¶ added in v0.2.22
func (AutoRefreshCache_GetOrCreate) Return ¶ added in v0.2.22
func (_m AutoRefreshCache_GetOrCreate) Return(_a0 utils.CacheItem, _a1 error) *AutoRefreshCache_GetOrCreate
type CacheItem ¶
CacheItem is an autogenerated mock type for the CacheItem type
func (*CacheItem) OnID ¶ added in v0.2.22
func (_m *CacheItem) OnID() *CacheItem_ID
func (*CacheItem) OnIDMatch ¶ added in v0.2.22
func (_m *CacheItem) OnIDMatch(matchers ...interface{}) *CacheItem_ID
type CacheItem_ID ¶ added in v0.2.22
func (CacheItem_ID) Return ¶ added in v0.2.22
func (_m CacheItem_ID) Return(_a0 string) *CacheItem_ID
type RateLimiter ¶
RateLimiter is an autogenerated mock type for the RateLimiter type
func (*RateLimiter) OnWait ¶ added in v0.2.22
func (_m *RateLimiter) OnWait(ctx context.Context) *RateLimiter_Wait
func (*RateLimiter) OnWaitMatch ¶ added in v0.2.22
func (_m *RateLimiter) OnWaitMatch(matchers ...interface{}) *RateLimiter_Wait
type RateLimiter_Wait ¶ added in v0.2.22
func (RateLimiter_Wait) Return ¶ added in v0.2.22
func (_m RateLimiter_Wait) Return(_a0 error) *RateLimiter_Wait
type Sequencer ¶
Sequencer is an autogenerated mock type for the Sequencer type
func (*Sequencer) OnGetCur ¶ added in v0.2.22
func (_m *Sequencer) OnGetCur() *Sequencer_GetCur
func (*Sequencer) OnGetCurMatch ¶ added in v0.2.22
func (_m *Sequencer) OnGetCurMatch(matchers ...interface{}) *Sequencer_GetCur
func (*Sequencer) OnGetNext ¶ added in v0.2.22
func (_m *Sequencer) OnGetNext() *Sequencer_GetNext
func (*Sequencer) OnGetNextMatch ¶ added in v0.2.22
func (_m *Sequencer) OnGetNextMatch(matchers ...interface{}) *Sequencer_GetNext
type Sequencer_GetCur ¶ added in v0.2.22
func (Sequencer_GetCur) Return ¶ added in v0.2.22
func (_m Sequencer_GetCur) Return(_a0 uint64) *Sequencer_GetCur
type Sequencer_GetNext ¶ added in v0.2.22
func (Sequencer_GetNext) Return ¶ added in v0.2.22
func (_m Sequencer_GetNext) Return(_a0 uint64) *Sequencer_GetNext
Click to show internal directories.
Click to hide internal directories.