watcher

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

type Cleaner struct {
	// contains filtered or unexported fields
}

Cleaner cleaner for account indexer

func NewCleaner

func NewCleaner(repo repository.IndexRepo) Cleaner

NewCleaner create a cleaner instance

func (Cleaner) CleanBlockDB

func (c Cleaner) CleanBlockDB()

CleanBlockDB clean block db regularly

type NodeStatusWatcher

type NodeStatusWatcher struct {
	// contains filtered or unexported fields
}

NodeStatusWatcher watch status of geth node

func NewNodeStatusWatcher

func NewNodeStatusWatcher(indexRepo repository.IndexRepo, batchRepo repository.BatchRepo) NodeStatusWatcher

NewNodeStatusWatcher create NodeStatusWatcher

func (*NodeStatusWatcher) Watch

func (n *NodeStatusWatcher) Watch()

Watch entry point of this struct

type Watcher

type Watcher interface {
	Watch()
}

Watcher interface for Watch()

Jump to

Keyboard shortcuts

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