config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModuleName string = "CONFIG"
)

define constant variables

Functions

This section is empty.

Types

type ConfigData

type ConfigData struct {
	IP            string   `json:"IP"`
	TcpPort       int      `json:"TcpPort"`
	UdpPort       int      `json:"UdpPort"`
	UserAgent     string   `json:"UserAgent"`
	TopicArray    []string `json:"TopicArray"`
	Network       string   `json:"Network"`
	Eth2Endpoint  string   `json:"Eth2Endpoint"`
	DBEndpoint    string   `json:"DBEndpoint"`
	ForkDigest    string   `json:"ForkDigest"`
	LogLevel      string   `json:"LogLevel"`
	PrivateKey    string   `json:"PrivateKey"`
	BootNodesFile string   `json:"BootNodesFile"`
	OutputPath    string   `json:"OutputPath"`
}

func NewConfigFromFile added in v1.1.0

func NewConfigFromFile(configFile string) ConfigData

NewConfigFromArgs * This method will create a ConfigData from the given args flags @return A ConfigData object @return whether the help was requested or not

func (*ConfigData) ReadFromJSON

func (c *ConfigData) ReadFromJSON(input_file string)

ReadFromJSON *This method will parse a Configuration file and retrieve the data * into the current ConfigData object @param input_file where to read configuration from

Jump to

Keyboard shortcuts

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