config

package
v2.33.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KeyDelimiter = "_"

	// viper keys used in config
	FeaturesKey         = "features"
	FeatureRegistration = "registration"
	// Deprecated: use nginx-config-async instead
	FeatureNginxConfig         = "nginx-config"
	FeatureNginxConfigAsync    = "nginx-config-async"
	FeatureNginxSSLConfig      = "nginx-ssl-config"
	FeatureNginxCounting       = "nginx-counting"
	FeatureMetrics             = "metrics"
	FeatureMetricsCollection   = "metrics-collection"
	FeatureMetricsSender       = "metrics-sender"
	FeatureMetricsThrottle     = "metrics-throttle"
	FeatureDataPlaneStatus     = "dataplane-status"
	FeatureProcessWatcher      = "process-watcher"
	FeatureFileWatcher         = "file-watcher"
	FeatureFileWatcherThrottle = "file-watch-throttle"
	FeatureActivityEvents      = "activity-events"
	FeatureAgentAPI            = "agent-api"

	CommanderPlugin    = "commander"
	ConfigReaderPlugin = "config-reader-plugin"
	ExtensionPlugin    = "extension-plugin"
	FeaturesPlugin     = "features-plugin"
	NginxBinaryPlugin  = "nginx-binary"

	// Extensions
	ExtensionsKey                            = "extensions"
	AdvancedMetricsExtensionPlugin           = "advanced-metrics"
	NginxAppProtectExtensionPlugin           = "nginx-app-protect"
	NginxAppProtectMonitoringExtensionPlugin = "nap-monitoring"
	PhpFpmMetricsExtensionPlugin             = "php-fpm-metrics"

	// Configuration Keys
	AdvancedMetricsExtensionPluginConfigKey           = "advanced_metrics"
	NginxAppProtectExtensionPluginConfigKey           = "nginx_app_protect"
	NginxAppProtectMonitoringExtensionPluginConfigKey = "nap_monitoring"
)

Variables

This section is empty.

Functions

func DecodeConfig added in v2.24.0

func DecodeConfig[T interface{}](input interface{}) (output T, err error)

func GetDefaultFeatures

func GetDefaultFeatures() []string

func GetKnownExtensions added in v2.24.0

func GetKnownExtensions() []string

func IsKnownExtension added in v2.24.0

func IsKnownExtension(extension string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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