neblet

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: LGPL-3.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNebletAlreadyRunning throws when the neblet is already running.
	ErrNebletAlreadyRunning = errors.New("neblet is already running")
)

Functions

func LoadConfig

func LoadConfig(filename string) *nebletpb.Config

Types

type Neblet

type Neblet struct {
	// contains filtered or unexported fields
}

Neblet manages life cycle of blockchain services.

func New

func New(config nebletpb.Config) *Neblet

New returns a new neblet.

func (*Neblet) AccountManager

func (n *Neblet) AccountManager() *account.Manager

AccountManager returns account manager reference.

func (*Neblet) BlockChain

func (n *Neblet) BlockChain() *core.BlockChain

BlockChain returns block chain reference.

func (*Neblet) Config

func (n *Neblet) Config() nebletpb.Config

Config returns neblet configuration.

func (*Neblet) NetService

func (n *Neblet) NetService() *p2p.NetService

NetService returns p2p manager reference.

func (*Neblet) Start

func (n *Neblet) Start() error

Start starts the services of the neblet.

func (*Neblet) Stop

func (n *Neblet) Stop() error

Stop stops the services of the neblet.

Directories

Path Synopsis
Package nebletpb is a generated protocol buffer package.
Package nebletpb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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