Help us shape the future of Go! Take the 2026 Go Developer Survey

configuration

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 7 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string, c interface{}) (err error)

LoadConfig loads configuration file from path.

Types

type Config

type Config struct {
	VERSION                 string
	NodeIP                  string
	NodePort                string
	ChainType               string
	DOSAddressBridgeAddress string
	EthGasLimit             string
	BootStrapIPs            []string
	ChainNodePool           []string
}

Config is the configuration for creating a DOS client instance.

func (*Config) LoadConfig

func (c *Config) LoadConfig() (err error)

LoadConfig loads configuration file from path.

func (*Config) UpdateConfig

func (c *Config) UpdateConfig() (err error)

UpdateConfig saves configuration to a file.

Jump to

Keyboard shortcuts

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