config

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevelStr string       `file:"log_level" default:"info" env:"LOG_LEVEL"`
	LogLevel    logrus.Level `json:"-" yaml:"-"`

	SelfURL    string `file:"self_url" env:"SELF_URL" required:"true"`
	OpenOnErda bool   `file:"open_on_erda" default:"false" env:"OPEN_ON_ERDA"`

	Exporter configPromExporter

	RoutesRefs []string     `file:"routes_refs"`
	Routes     route.Routes `json:"-" yaml:"-"`
}

func (*Config) DoPost

func (cfg *Config) DoPost() error

DoPost do some post process after config loaded

Jump to

Keyboard shortcuts

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