networks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalNetworkName             = "local"
	HTTPHost                     = "" // XXX
	PeerListGossipFrequency      = "250ms"
	NetworkInitialReconnectDelay = "250ms"
	NetworkMaxReconnectDelay     = "250ms"
	HealthCheckFreq              = "2s"
	DefaultLogLevel              = "debug"
)

Variables

This section is empty.

Functions

func CreateBasicLocalNodeConfig

func CreateBasicLocalNodeConfig() map[string]interface{}

CreateBasicLocalNodeConfig creates the map for the config of a basic node with the required fields to allow the local network to connect and report healthy quickly.

func NewDefaultLocalNetwork

func NewDefaultLocalNetwork(ctx context.Context, orchestrator backend.NetworkOrchestrator, executable string) (backend.Network, error)

NewDefaultLocalNetwork uses orchestrator to generate a new network that runs with 5 nodes on the default local network

Types

type InitialNetworkConfig

type InitialNetworkConfig struct {
	Nodes []backend.NodeConfig `json:"initialNodes"`
}

func CreateLocalNetworkConfig

func CreateLocalNetworkConfig(executable string) *InitialNetworkConfig

CreateLocalNetworkConfig creates the initial network config for the default local network

Jump to

Keyboard shortcuts

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