config

package
v0.6.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName   = "turna"
	LoadName  = ""
	StartDate = time.Now()
)
View Source
var Application = struct {
	LogLevel   string             `cfg:"log_level"`
	Loads      loader.Configs     `cfg:"loads"`
	Services   service.Services   `cfg:"services"`
	Print      string             `cfg:"print"`
	Server     server.Server      `cfg:"server"`
	Preprocess preprocess.Configs `cfg:"preprocess"`
}{
	LogLevel: "info",
}
View Source
var BuildVars = Build{}
View Source
var GetBanner = func() string {
	return banner[1:]
}
View Source
var LoadConfig = LoadApp{
	AppName: AppName,
	ConfigSet: GetConfig{
		Consul: false,
		Vault:  false,
		File:   true,
	},
}

Functions

This section is empty.

Types

type Build added in v0.3.0

type Build struct {
	Version string
	Commit  string
	Date    string
}

type GetConfig

type GetConfig struct {
	Vault  bool
	Consul bool
	File   bool
}

type LoadApp

type LoadApp struct {
	Prefix    Prefix    `cfg:"prefix"`
	AppName   string    `cfg:"app_name"`
	ConfigSet GetConfig `cfg:"config_set"`
}

type Prefix

type Prefix struct {
	Vault  string `cfg:"vault"`
	Consul string `cfg:"consul"`
}

Jump to

Keyboard shortcuts

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