babble

package
v0.0.0-...-437c9e2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultKeyfile = "priv_key"

Variables

This section is empty.

Functions

func DefaultDataDir

func DefaultDataDir() string

func HomeDir

func HomeDir() string

func LogLevel

func LogLevel(l string) logrus.Level

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

func (*Babble) Init

func (b *Babble) Init() error

func (*Babble) Run

func (b *Babble) Run()

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

func (c *BabbleConfig) Keyfile() string

Jump to

Keyboard shortcuts

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