Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultConfigPath = "nginx-wrapper.toml"
DefaultConfigPath is a best guess of a relative path that may contain the config file.
Variables ¶
View Source
var CoreDefaults = map[string]interface{}{ "env": envAsMap(os.Environ()), "host_id": hostID(), "last_reload_time": "not reloaded", "modules_path": "/usr/lib/nginx/modules", "nginx_binary": "nginx", "nginx_version": "unknown", "nginx_is_plus": false, "plugin_path": "./plugins", "enabled_plugins": []string{}, "run_path": filepath.Clean(fs.TempDirectoryPath("nginx-wrapper")), "vcpu_count": runtime.NumCPU(), }
CoreDefaults for the normal operation of nginx-wrapper.
View Source
var LogDefaults = map[string]interface{}{ "level": "INFO", "destination": "STDOUT", "formatter_name": "TextFormatter", "formatter_options": TextFormatterOptionsDefaults, }
LogDefaults for nginx-wrapper log settings.
View Source
var PluginDefaults = map[string]map[string]interface{}{}
PluginDefaults dynamically set defaults by plugins for plugins. This is a map of maps with each plugin getting its own map.
View Source
var TextFormatterOptionsDefaults = map[string]interface{}{ "full_timestamp": true, "pad_level_text": true, }
TextFormatterOptionsDefaults for text formatter log settings.
Functions ¶
func AllKnownElements ¶
AllKnownElements contain all known keys and their values from the passed Viper configuration instance formatted using the supplied delimiter to indicate sub-keys.
func DynamicCoreDefaults ¶
DynamicCoreDefaults are defaults that depend on runtime settings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.