conf

package
v0.0.0-...-2cf5803 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Conf conf
	Conf = &Config{}
)

Functions

func Init

func Init() (err error)

Init init conf

Types

type Config

type Config struct {
	Nodes      []string
	Zones      map[string][]string
	HTTPServer *ServerConfig
	HTTPClient *http.ClientConfig
	Env        *Env
	Scheduler  []byte
}

Config config.

func (*Config) Fix

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

Fix fix env config.

type Env

type Env struct {
	Region    string
	Zone      string
	Host      string
	DeployEnv string
}

Env is disocvery env.

type ServerConfig

type ServerConfig struct {
	Addr string
}

ServerConfig Http Servers conf.

Jump to

Keyboard shortcuts

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