config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultChainName = "rchain"

Variables

This section is empty.

Functions

func MustWriteFile

func MustWriteFile(filePath string, contents []byte, mode os.FileMode)

func WriteConfigFile

func WriteConfigFile(configFilePath string, config *RAServerConfig)

Types

type RAServerConfig

type RAServerConfig struct {
	ExampleMetric float64 `mapstructure:"example_metric"`
	ChainName     string  `mapstructure:"chain_name"`
}

func DefaultRAServerConfig

func DefaultRAServerConfig() *RAServerConfig

func ReadConfigFile

func ReadConfigFile(configFilePath string) (config *RAServerConfig, err error)

Jump to

Keyboard shortcuts

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