config

package
v0.0.0-...-2932577 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conf = NewConfig()

Conf глобальный конфиг синглтон.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTP    *HTTPConfig                `yaml:"http"`
	Logging *util.LoggingConfig        `yaml:"logging"`
	ETCD    *storage.ETCDConfig        `yaml:"etcd"`
	Watcher *watcher.PlanWatcherConfig `yaml:"watcher"`
}

Config конфигурация сервиса.

func NewConfig

func NewConfig() *Config

NewConfig создает конфиг с настройками по-умолчанию

type HTTPConfig

type HTTPConfig struct {
	*httplib.HTTPConfig `yaml:",inline"`
	DashboardIP         string `yaml:"dashboard_ip"`
}

HTTPConfig конфигурация HTTP сервера

Jump to

Keyboard shortcuts

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