conte

package
v0.0.0-...-94820cb Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Xt

type Xt struct {
	// App is the heart of the application system,
	// this creates and initialises it.
	App *cli.App
	// Config is the pod all-in-one server config
	Config *pod.Config
	// StateCfg is a reference to the main node state configuration struct
	StateCfg *state.Config
	// ActiveNet is the active net parameters
	ActiveNet *netparams.Params
	// DataDir is the default data dir
	DataDir string
	// Node is the run state of the node
	Node *atomic.Value
	// NodeKill is the killswitch for the Node
	NodeKill chan struct{}
	// TestNode is the run state of the TestNode
	TestNode *atomic.Value
	// TestNodeKill is the killswitch for the TestNode
	TestNodeKill chan struct{}
	// RPCServer is needed to directly query data
	RPCServer *rpc.Server
	// Scribble DB
	DB *scribble.Driver
	// RealNode is the main node
	RealNode *rpc.Node
}

Xt as in conte.Xt stores all the common state data used in pod

func GetNewContext

func GetNewContext(appName string, subtext string) *Xt

GetNewContext returns a fresh new context

Jump to

Keyboard shortcuts

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