config

package
v0.0.184 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 2 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 {
	CleanupInterval            time.Duration `mapstructure:"cleanupInterval"`
	DefaultNamespace           string        `mapstructure:"defaultNamespace"`
	DisableVirtualCRDs         bool          `mapstructure:"disableVirtualCRDs"`
	ExcludeJsonPaths           []string      `mapstructure:"excludeJsonPaths"`
	MaxApplicationProfileSize  int           `mapstructure:"maxApplicationProfileSize"`
	MaxNetworkNeighborhoodSize int           `mapstructure:"maxNetworkNeighborhoodSize"`
	RateLimitPerClient         float64       `mapstructure:"rateLimitPerClient"`
	RateLimitTotal             int           `mapstructure:"rateLimitTotal"`
	ServerBindPort             int           `mapstructure:"serverBindPort"`
	TlsClientCaFile            string        `mapstructure:"tlsClientCaFile"`
	TlsServerCertFile          string        `mapstructure:"tlsServerCertFile"`
	TlsServerKeyFile           string        `mapstructure:"tlsServerKeyFile"`
}

func LoadConfig

func LoadConfig(path string) (Config, error)

LoadConfig reads configuration from file or environment variables.

Jump to

Keyboard shortcuts

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