core

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CooldownMilliseconds              = 1000
	ServerShutdownTimeoutMilliseconds = 1000
	LoggingCallerDepth                = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kernel added in v0.18.0

type Kernel struct {
	// Expose these public-facing interfaces to allow programmatic extension of the Kernel by other projects
	Emitter   event.Emitter
	Service   *rpc.Service
	Launchers []process.Launcher
	Logger    *logging.Logger
	// contains filtered or unexported fields
}

Kernel is the root structure of Burrow

func NewKernel added in v0.18.0

func NewKernel(ctx context.Context, keyClient keys.KeyClient, privValidator tm_types.PrivValidator,
	genesisDoc *genesis.GenesisDoc, tmConf *tm_config.Config, rpcConfig *rpc.RPCConfig,
	exeOptions []execution.ExecutionOption, logger *logging.Logger) (*Kernel, error)

func (*Kernel) Boot added in v0.18.0

func (kern *Kernel) Boot() error

Boot the kernel starting Tendermint and RPC layers

func (*Kernel) Shutdown added in v0.18.0

func (kern *Kernel) Shutdown(ctx context.Context) (err error)

Stop the kernel allowing for a graceful shutdown of components in order

func (*Kernel) WaitForShutdown added in v0.18.0

func (kern *Kernel) WaitForShutdown()

Wait for a graceful shutdown

Jump to

Keyboard shortcuts

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