config

package
v2.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvFirehoseID                  = "FIREHOSE_ID"
	EnvCFAPIRUL                    = "CF_API_URL"
	EnvDomain                      = "ATTR_DOMAIN"
	EnvDomainAlias                 = "ATTR_DOMAIN_ALIAS"
	EnvEnvelopeType                = "ATTR_ENVELOPE_TYPE"
	EnvOrigin                      = "ATTR_ORIGIN"
	EnvDeployment                  = "ATTR_DEPLOYMENT"
	EnvJob                         = "ATTR_JOB"
	EnvIndex                       = "ATTR_INDEX"
	EnvIP                          = "ATTR_IP"
	EnvAppID                       = "ATTR_APP_ID"
	EnvAppName                     = "ATTR_APP_NAME"
	EnvAppSpaceName                = "ATTR_APP_SPACE_NAME"
	EnvAppOrgName                  = "ATTR_APP_ORG_NAME"
	EnvAppInstanceIndex            = "ATTR_APP_INSTANCE_INDEX"
	EnvAppInstanceUID              = "ATTR_APP_INSTANCE_UID"
	EnvAppInstanceState            = "ATTR_APP_INSTANCE_STATE"
	EnvAppInstancesDesired         = "ATTR_APP_INSTANCES_DESIRED"
	EnvAppRpmId                    = "ATTR_APP_RPM_ID"
	EnvAppInsertKey                = "ATTR_APP_INSERT_KEY"
	NewRelicEventTypeContainer     = "NEWRELIC_EVENT_TYPE_CONTAINER"
	NewRelicEventTypeValueMetric   = "NEWRELIC_EVENT_TYPE_VALUE"
	NewRelicEventTypeCounterEvent  = "NEWRELIC_EVENT_TYPE_COUNTER"
	NewRelicEventTypeLogMessage    = "NEWRELIC_EVENT_TYPE_LOG"
	NewRelicEventTypeHTTPStartStop = "NEWRELIC_EVENT_TYPE_HTTPSTARTSTOP"
)

nolint

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*viper.Viper
}

Config extending Viper...

func Get

func Get() *Config

Get Config with defaults

func (*Config) AttributeName

func (c *Config) AttributeName(n string) string

AttributeName ...

func (*Config) GetFilter

func (c *Config) GetFilter(filterName string) []string

GetFilter retrieves filter based configuration settings, split on the | character

func (*Config) GetNewEnvelopeTypes

func (c *Config) GetNewEnvelopeTypes() []string

GetNewEnvelopeTypes ...

func (*Config) GetNewRelicConfig

func (c *Config) GetNewRelicConfig() (key string, id string, region string)

GetNewRelicConfig ...

func (*Config) GetSelectors

func (c *Config) GetSelectors() []*loggregator_v2.Selector

GetSelectors ...

Jump to

Keyboard shortcuts

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