huron

package
v0.0.0-...-50e3d47 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultKeyfile = "priv_key"

DefaultKeyfile ...

Variables

This section is empty.

Functions

func DefaultDataDir

func DefaultDataDir() string

DefaultDataDir ...

func HomeDir

func HomeDir() string

HomeDir ...

func LogLevel

func LogLevel(l string) logrus.Level

LogLevel ...

Types

type Huron

type Huron struct {
	Config       *HuronConfig
	Node         *node.Node
	Transport    net.Transport
	Store        h.Store
	Peers        *peers.PeerSet
	GenesisPeers *peers.PeerSet
	Service      *service.Service
}

Huron is a struct containing the key parts of a huron node

func NewHuron

func NewHuron(config *HuronConfig) *Huron

NewHuron is a factory method to produce a Huron instance.

func (*Huron) Init

func (b *Huron) Init() error

Init initialises the huron engine

func (*Huron) Run

func (b *Huron) Run()

Run starts the Huron Node running

type HuronConfig

type HuronConfig 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
}

HuronConfig ...

func NewDefaultConfig

func NewDefaultConfig() *HuronConfig

NewDefaultConfig ...

func (*HuronConfig) BadgerDir

func (c *HuronConfig) BadgerDir() string

BadgerDir ...

func (*HuronConfig) Keyfile

func (c *HuronConfig) Keyfile() string

Keyfile ...

Jump to

Keyboard shortcuts

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