Documentation
¶
Index ¶
Constants ¶
This section is empty.
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.Peers 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"` LoadPeers bool Proxy proxy.AppProxy Key *ecdsa.PrivateKey Logger *logrus.Logger }
func NewDefaultConfig ¶
func NewDefaultConfig() *BabbleConfig
func (*BabbleConfig) BadgerDir ¶
func (c *BabbleConfig) BadgerDir() string
Click to show internal directories.
Click to hide internal directories.