blob: f35bc654751c42160b5b9bcdd74b8eed64e3a168 (
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.Dexon if config is set.
Start() error
// Stop is called by dex.Dexon if config is set and procedure is
// terminating.
Stop() error
}
|