Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct { Node TMClient // connects to TM Port int // Port is which port to listen for connections. Logger logrus.FieldLogger }
Cfg represents this application's configuration.
func NewFromEnv ¶
NewFromEnv initializes configuration and returns a config struct
type TMClient ¶
type TMClient interface { client.ABCIClient client.HistoryClient client.NetworkClient client.StatusClient Block(height *int64) (*rpctypes.ResultBlock, error) }
A TMClient implements all the tendermint client methods we expect
It should be relatively easy to implement by wrapping https://godoc.org/github.com/tendermint/tendermint/rpc/client/mock#ABCIApp with something which mocks a block
Click to show internal directories.
Click to hide internal directories.