config

package
v0.0.0-...-4d05b4e Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfigPath

func ValidateConfigPath(path string) error

Types

type ConfigYAML

type ConfigYAML struct {
	Logging struct {
		LogFile     string `yaml:"logfile"`
		Level       string `yaml:"level"`
		LogToStdout bool   `yaml:"logToStdout"`
	}
	Defaults struct {
		Port int `yaml:"port"`
	}
	Bootstrap struct {
		Node struct {
			Address string `yaml:"address"`
			Port    int    `yaml:"port"`
		}
		Datacenter string `yaml:"datacenter"`
	}
}
var Config *ConfigYAML

func NewConfig

func NewConfig(configFilePath string) (*ConfigYAML, error)

Jump to

Keyboard shortcuts

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