conf

package
v0.0.0-...-6af19a8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 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    *http.ServerConfig
	HTTPClient    *http.ClientConfig
	Env           *Env
	Log           *log.Config
	Scheduler     []byte
	EnableProtect bool
}

Config config.

func (*Config) Set

func (c *Config) Set(content string) (err error)

Set config setter.

type Env

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

Env is discovery env.

Jump to

Keyboard shortcuts

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