babble

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 14 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDataDir

func DefaultDataDir() string

func HomeDir

func HomeDir() string

func Keygen

func Keygen(datadir string) (*ecdsa.PrivateKey, error)

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.Peers
	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"`

	LoadPeers bool
	Proxy     proxy.AppProxy
	Key       *ecdsa.PrivateKey
	Logger    *logrus.Logger
}

func NewDefaultConfig

func NewDefaultConfig() *BabbleConfig

func (*BabbleConfig) BadgerDir

func (c *BabbleConfig) BadgerDir() string

Jump to

Keyboard shortcuts

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