Documentation
¶
Index ¶
- Constants
- func BindFlags(cmd *cobra.Command, v *viper.Viper)
- func GetAPIFlags() *pflag.FlagSet
- func GetConfigFileName() string
- func GetEventGridFlags() *pflag.FlagSet
- func GetGenericFlags() *pflag.FlagSet
- func GetLoggingFlags() *pflag.FlagSet
- func GetMetricsFlags() *pflag.FlagSet
- func GetMonitorFlags() *pflag.FlagSet
- func GetTranslateFlags() *pflag.FlagSet
- type ADXLogging
- type ADXTranslate
- type API
- type Bootstrap
- type Chaos
- type Checkpoint
- type ConsoleLogging
- type Customer
- type EventGrid
- type EventGridOptions
- type EventHub
- type Failure
- type FluentdLogging
- type Health
- type InMem
- type Logging
- type Metrics
- type Monitor
- type Prometheus
- type RetryOptions
- type Statsd
- type Translate
Constants ¶
View Source
const ( EnvPrefix = "TEMPO" StrategyBalanced = "balanced" StreategyGreedy = "greedy" PRIMARY_ROLE = "Primary" SECONDARY_ROLE = "Secondary" )
View Source
const DefaultAPIPort = 8888
Variables ¶
This section is empty.
Functions ¶
func BindFlags ¶
Bind each cobra flag to its associated viper configuration (config file and environment variable)
func GetAPIFlags ¶
func GetConfigFileName ¶
func GetConfigFileName() string
func GetEventGridFlags ¶
func GetGenericFlags ¶
func GetLoggingFlags ¶
func GetMetricsFlags ¶
func GetMonitorFlags ¶
func GetTranslateFlags ¶
Types ¶
type ADXLogging ¶
type ADXTranslate ¶
type ADXTranslate struct {
Enabled bool `yaml:"enabled" json:"enabled"`
Endpoint string `yaml:"endpoint" json:"endpoint"`
Database string `yaml:"database" json:"database"`
UpdateFrequency time.Duration `yaml:"updatefrequency" json:"updatefrequency"`
RetryOptions RetryOptions `yaml:"retry" json:"retry"`
}
type Bootstrap ¶
type Bootstrap struct {
Environment string `yaml:"environment"`
EventHub EventHub `yaml:"eventhub" json:"eventhub"`
Translate Translate `yaml:"translate" json:"translate"`
Logging Logging `yaml:"logging" json:"logging"`
Debug bool `yaml:"debug" json:"debug"`
Metrics Metrics `yaml:"metrics" json:"metrics"`
EventGrid EventGrid `yaml:"eventgrid" json:"eventgrid"`
Monitor Monitor `yaml:"monitor" json:"monitor"`
API API `yaml:"api" json:"api"`
}
type Checkpoint ¶
type ConsoleLogging ¶
type ConsoleLogging struct {
Pretty bool `yaml:"pretty" json:"pretty"`
}
type Customer ¶
type Customer struct {
Subscriptions []string `yaml:"Subscriptions" json:"Subscriptions"`
}
type EventGrid ¶
type EventGrid struct {
Primary EventGridOptions `yaml:"primary" json:"primary"`
Secondary EventGridOptions `yaml:"secondary" json:"secondary"`
}
type EventGridOptions ¶
type EventGridOptions struct {
Endpoint string `yaml:"endpoint" json:"endpoint"`
Topic string `yaml:"topic" json:"topic"`
Chaos Chaos `yaml:"chaos" json:"chaos"`
Key string `yaml:"key" json:"key"`
RetryOptions RetryOptions `yaml:"retry" json:"retry"`
}
type EventHub ¶
type EventHub struct {
Namespace string `yaml:"eventHubNamespace" json:"eventHubNamespace"`
Name string `yaml:"eventHubName" json:"eventHubName"`
ConsumerGroup string `yaml:"consumerGroup" json:"consumerGroup"`
Checkpoint Checkpoint `yaml:"checkpoint" json:"checkpoint"`
Strategy string `yaml:"strategy" json:"strategy"`
}
type FluentdLogging ¶
type Health ¶
type Health struct {
Interval time.Duration `yaml:"interval" json:"interval"`
PreemptionHoldTime time.Duration `yaml:"preemptionholdtime" json:"preemptionholdtime"`
Checkpoint Checkpoint `yaml:"checkpoint" json:"checkpoint"`
}
type Logging ¶
type Logging struct {
Console ConsoleLogging `yaml:"console" json:"console"`
ADX ADXLogging `yaml:"adx" json:"adx"`
Fluentd FluentdLogging `yaml:"fluentd" json:"fluentd"`
}
type Metrics ¶
type Metrics struct {
ADX ADXLogging `yaml:"adx" json:"adx"`
FlushInterval time.Duration `yaml:"flushinterval" json:"flushinterval"`
}
type Prometheus ¶
type RetryOptions ¶
type Translate ¶
type Translate struct {
MessageExpiration time.Duration `yaml:"messageexpiration" json:"messageexpiration"`
ADX ADXTranslate `yaml:"adx" json:"adx"`
Chaos Chaos `yaml:"caos" json:"caos"`
Logging ADXLogging `yaml:"logging" json:"logging"`
}
Click to show internal directories.
Click to hide internal directories.