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