common

package
v0.0.0-...-4e62b15 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// bootstrappers will listen on 127.0.0.1 ports 9000, 9001, 9002, etc.
	BootstrapStartPort = 9000

	// nodes will listen on 127.0.0.1 ports 8000, 8001, 8002, etc.
	NodeStartPort = 8000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Nodes         []string `json:"nodes"`
	Bootstrappers []string `json:"bootstrappers"`

	// parsed values below
	NodeKeys       []ed25519.PrivateKey
	NodePeerIDs    []ragep2ptypes.PeerID
	NodePeerIDsStr []string

	BootstrapperKeys      []ed25519.PrivateKey
	BootstrapperPeerInfos []ragep2ptypes.PeerInfo
	BootstrapperLocators  []commontypes.BootstrapperLocator
}

func ParseConfigFromFile

func ParseConfigFromFile(fileName string) (*Config, error)

Jump to

Keyboard shortcuts

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