Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultKeyfile = "priv_key"
DefaultKeyfile ...
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Babble ¶
type Babble struct {
Config *BabbleConfig
Node *node.Node
Transport net.Transport
Store h.Store
Peers *peers.PeerSet
GenesisPeers *peers.PeerSet
Service *service.Service
}
Babble is a struct containing the key parts of a babble node
func NewBabble ¶
func NewBabble(config *BabbleConfig) *Babble
NewBabble is a factory method to produce a Babble instance.
type BabbleConfig ¶
type BabbleConfig 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
}
BabbleConfig ...
Click to show internal directories.
Click to hide internal directories.