datanode

package
v0.76.8 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath

func ConfigFilePath(nodeDir string) string

func NewConfigTemplate

func NewConfigTemplate(templateRaw string) (*template.Template, error)

Types

type ConfigGenerator

type ConfigGenerator struct {
	// contains filtered or unexported fields
}

func NewConfigGenerator

func NewConfigGenerator(conf *config.Config, generatedNodeSets []types.NodeSet) (*ConfigGenerator, error)

func (*ConfigGenerator) Initiate

func (dng *ConfigGenerator) Initiate(index int, chainID string, optVegaBinary *string) (*types.DataNode, error)

func (ConfigGenerator) OverwriteConfig

func (dng ConfigGenerator) OverwriteConfig(ns types.NodeSet, configTemplate *template.Template) error

func (*ConfigGenerator) TemplateAndMergeConfig

func (dng *ConfigGenerator) TemplateAndMergeConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)

func (ConfigGenerator) TemplateConfig

func (dng ConfigGenerator) TemplateConfig(ns types.NodeSet, configTemplate *template.Template) (*bytes.Buffer, error)

type ConfigTemplateContext

type ConfigTemplateContext struct {
	NodeHomeDir string
	NodeNumber  int
	NodeSet     types.NodeSet
	// contains filtered or unexported fields
}

func (ConfigTemplateContext) GetNetworkHistoryPeerID added in v0.5.1

func (tc ConfigTemplateContext) GetNetworkHistoryPeerID(nodeNumber int) string

func (ConfigTemplateContext) GetNetworkHistoryPrivKey added in v0.5.1

func (tc ConfigTemplateContext) GetNetworkHistoryPrivKey(nodeNumber int) string

func (ConfigTemplateContext) IPSFPeers added in v0.3.0

func (tc ConfigTemplateContext) IPSFPeers() []IPSFPeer

type IPSFPeer added in v0.3.0

type IPSFPeer struct {
	Index int
	ID    string
}

Jump to

Keyboard shortcuts

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