Documentation
¶
Index ¶
- type Indexer
- func (_m *Indexer) CompleteReindex(from indexer.Version, to indexer.Version) error
- func (_m *Indexer) GetID() string
- func (_m *Indexer) GetTypes() []string
- func (_m *Indexer) GetVersion() indexer.Version
- func (_m *Indexer) Index(networkID string, states types.StatesByID) (types.StateErrors, error)
- func (_m *Indexer) PrepareReindex(from indexer.Version, to indexer.Version, isFirstReindex bool) error
- func (_m *Indexer) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
Indexer is an autogenerated mock type for the Indexer type
func NewMockIndexer ¶
func NewMockIndexer( t *testing.T, id string, version indexer.Version, types []string, prepare, complete, index chan mock.Arguments, ) (remoteIndexer indexer.Indexer, mockIndexer *Indexer)
NewMockIndexer returns a do-nothing test indexer with specified elements.
- id -- GetID return
- version -- GetVersion return
- types -- GetTypes return
- prepare -- write PrepareReindex args to chan when called
- complete -- write CompleteReindex args to chan when called
- index -- write Index args to chan when called
func (*Indexer) CompleteReindex ¶
CompleteReindex provides a mock function with given fields: from, to
func (*Indexer) GetVersion ¶
GetVersion provides a mock function with given fields:
func (*Indexer) Index ¶
func (_m *Indexer) Index(networkID string, states types.StatesByID) (types.StateErrors, error)
Index provides a mock function with given fields: networkID, states
Click to show internal directories.
Click to hide internal directories.