mocks

package
v0.2.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoRefreshCache

type AutoRefreshCache struct {
	mock.Mock
}

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

func (_m *AutoRefreshCache) GetOrCreate(item utils.CacheItem) (utils.CacheItem, error)

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 CacheItem

type CacheItem struct {
	mock.Mock
}

CacheItem is an autogenerated mock type for the CacheItem type

func (*CacheItem) ID

func (_m *CacheItem) ID() string

ID provides a mock function with given fields:

type RateLimiter

type RateLimiter struct {
	mock.Mock
}

RateLimiter is an autogenerated mock type for the RateLimiter type

func (*RateLimiter) Wait

func (_m *RateLimiter) Wait(ctx context.Context) error

Wait provides a mock function with given fields: ctx

type Sequencer

type Sequencer struct {
	mock.Mock
}

Sequencer is an autogenerated mock type for the Sequencer type

func (*Sequencer) GetCur

func (_m *Sequencer) GetCur() uint64

GetCur provides a mock function with given fields:

func (*Sequencer) GetNext

func (_m *Sequencer) GetNext() uint64

GetNext provides a mock function with given fields:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL