cfg

package
v1.99.99 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

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 New

func New(nodeAddr string) (Cfg, []string, error)

New initializes configuration and returns a config struct

func NewFromEnv

func NewFromEnv() (Cfg, []string, error)

NewFromEnv initializes configuration and returns a config struct

type TMClient

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

Jump to

Keyboard shortcuts

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