Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultKeyfile = "priv_key"
Variables ¶
This section is empty.
Functions ¶
func DefaultDataDir ¶
func DefaultDataDir() string
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 }
func NewBabble ¶
func NewBabble(config *BabbleConfig) *Babble
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 }
func NewDefaultConfig ¶
func NewDefaultConfig() *BabbleConfig
func (*BabbleConfig) BadgerDir ¶
func (c *BabbleConfig) BadgerDir() string
func (*BabbleConfig) Keyfile ¶ added in v0.5.0
func (c *BabbleConfig) Keyfile() string
Click to show internal directories.
Click to hide internal directories.