config

package
v0.0.0-...-b6b44b4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 1

Variables

This section is empty.

Functions

func Parse

func Parse(conf string) error

Types

type ConfYaml

type ConfYaml struct {
	HTTP     HTTPSection              `yaml:"http"`
	RPC      RPCSection               `yaml:"rpc"`
	Cache    cache.CacheSection       `yaml:"cache"`
	Logger   logger.LoggerSection     `yaml:"logger"`
	Identity identity.IdentitySection `yaml:"identity"`
	Report   report.ReportSection     `yaml:"report"`
}
var (
	Config *ConfYaml
)

func GetCfgYml

func GetCfgYml() *ConfYaml

type HTTPSection

type HTTPSection struct {
	Enabled bool `yaml:"enabled"`
}

type RPCSection

type RPCSection struct {
	Enabled bool `yaml:"enabled"`
}

Jump to

Keyboard shortcuts

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