config

package
v0.0.0-...-71bb944 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 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 {
	// NOTE: When adding new attributes that can be considered secrets,
	// make sure to mark them for omission when logging config in AsLogString
	UAAURL                      string
	Client                      string
	ClientSecret                string
	RLPGatewayURL               string
	FirehoseSubscriptionID      string
	DataDogURL                  string
	DataDogAPIKey               string
	DataDogAdditionalEndpoints  map[string][]string
	HTTPProxyURL                string
	HTTPSProxyURL               string
	NoProxy                     []string
	CloudControllerEndpoint     string
	CloudControllerAPIBatchSize uint32
	DataDogTimeoutSeconds       uint32
	FlushDurationSeconds        uint32
	FlushMaxBytes               uint32
	InsecureSSLSkipVerify       bool
	MetricPrefix                string
	Deployment                  string
	DeploymentFilter            string
	DisableAccessControl        bool
	IdleTimeoutSeconds          uint32
	AppMetrics                  bool
	NumWorkers                  int
	NumCacheWorkers             int
	GrabInterval                int
	CustomTags                  []string
	EnvironmentName             string
	WorkerTimeoutSeconds        uint32
	OrgDataCollectionInterval   uint32
}

Config contains all the config parameters

func Parse

func Parse(configPath string) (*Config, error)

Parse parses the config from the json configuration and environment variables

func (*Config) AsLogString

func (c *Config) AsLogString() (string, error)

AsLogString returns a string representation of the config that is safe to log (no secrets)

Jump to

Keyboard shortcuts

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