process

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Header = `` /* 416-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is a wrapper around a node

func NewApp

func NewApp(config node.Config) *App

func (*App) Start

func (a *App) Start() int

Start creates and runs an AvalancheGo node. Returns the node's exit code. If [a.Stop()] is called, Start() returns 0. This method blocks until the node is done.

func (*App) Stop

func (a *App) Stop()

Assumes [a.node] is not nil. Blocks until [a.node] is done shutting down.

type Config

type Config struct {
	// If true, displays version and exits during startup
	DisplayVersionAndExit bool

	// Path to the build directory
	BuildDir string

	// If true, run as a plugin
	PluginMode bool
}

Jump to

Keyboard shortcuts

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