config

package
v1.0.4-dev-cleanup-cod... Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Threshold           int                  `json:"threshold"` //pub SLA in seconds, ex. 120
	QueueConf           consumer.QueueConfig `json:"queueConfig"`
	MetricConf          []metrics.Config     `json:"metricConfig"`
	SplunkConf          SplunkConfig         `json:"splunk-config"`
	HealthConf          HealthConfig         `json:"healthConfig"`
	ValidationEndpoints map[string]string    `json:"validationEndpoints"` //contentType to validation endpoint mapping, ex. { "EOM::Story": "http://methode-article-transformer/content-transform" }
	UUIDResolverURL     string               `json:"uuidResolverUrl"`
}

AppConfig holds the application's configuration

func NewAppConfig

func NewAppConfig(configFileName string) (*AppConfig, error)

NewAppConfig opens the file at configFileName and unmarshals it into an AppConfig.

type HealthConfig

type HealthConfig struct {
	FailureThreshold int `json:"failureThreshold"`
}

HealthConfig holds the application's healthchecks configuration

type SplunkConfig

type SplunkConfig struct {
	LogPrefix string `json:"logPrefix"`
}

SplunkConfig holds the SplunkFeeder-specific configuration

Jump to

Keyboard shortcuts

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