gen

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenNodeConfig

func GenNodeConfig(addresses []string, types []nodeconf.NodeType, netKey crypto.PrivKey) (nc nodeconf.Node, ac accountservice.Config, err error)

func GenerateNodesConfigs

func GenerateNodesConfigs(nodes []NodeParameters) (nodesConf []nodeconf.Node, accounts []accountservice.Config, err error)

Types

type NodeConfigInfo

type NodeConfigInfo struct {
	Config  any
	Account accountservice.Config
	Nodes   nodeconf.Configuration
}

type NodeParameters

type NodeParameters struct {
	DebugAddress, Address, DBPath string
	NodeType                      nodeconf.NodeType
}

Jump to

Keyboard shortcuts

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