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
Click to show internal directories.
Click to hide internal directories.