blob: 647de7d81ec779f0aa1fad249fc49062212daafe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package indexer
// NewIndexerFuncName plugin looks up name.
var NewIndexerFuncName = "NewIndexer"
// NewIndexerFunc init function alias.
type NewIndexerFunc = func(ReadOnlyBlockChain, Config) Indexer
// Indexer defines indexer daemon interface. The daemon would hold a
// core.Blockhain, passed by initialization function, to receiving latest block
// event or other information query and interaction.
type Indexer interface {
// Start is called by dex.Tangerine if config is set.
Start() error
// Stop is called by dex.Tangerine if config is set and procedure is
// terminating.
Stop() error
}
|