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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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