Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultKeyfile = "priv_key"
DefaultKeyfile ...
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Huron ¶
type Huron struct { Config *HuronConfig Node *node.Node Transport net.Transport Store h.Store Peers *peers.PeerSet GenesisPeers *peers.PeerSet Service *service.Service }
Huron is a struct containing the key parts of a huron node
func NewHuron ¶
func NewHuron(config *HuronConfig) *Huron
NewHuron is a factory method to produce a Huron instance.
type HuronConfig ¶
type HuronConfig struct { NodeConfig node.Config `mapstructure:",squash"` DataDir string `mapstructure:"datadir"` BindAddr string `mapstructure:"listen"` ServiceAddr string `mapstructure:"service-listen"` MaxPool int `mapstructure:"max-pool"` Store bool `mapstructure:"store"` LogLevel string `mapstructure:"log"` Moniker string `mapstructure:"moniker"` LoadPeers bool Proxy proxy.AppProxy Key *ecdsa.PrivateKey Logger *logrus.Logger }
HuronConfig ...
Click to show internal directories.
Click to hide internal directories.