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 ¶
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
Click to show internal directories.
Click to hide internal directories.