Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
AppName string `mapstructure:"APP_NAME" default:"meteor"`
LogLevel string `mapstructure:"LOG_LEVEL" default:"info"`
MaxRetries int `mapstructure:"MAX_RETRIES" default:"5"`
RetryInitialIntervalSeconds int `mapstructure:"RETRY_INITIAL_INTERVAL_SECONDS" default:"5"`
StopOnSinkError bool `mapstructure:"STOP_ON_SINK_ERROR" default:"false"`
OtelEnabled bool `mapstructure:"OTEL_ENABLED" default:"false"`
OtelCollectorAddr string `mapstructure:"OTEL_COLLECTOR_ADDR" default:"localhost:4317"`
OtelTraceSampleProbability float64 `mapstructure:"OTEL_TRACE_SAMPLE_PROBABILITY" default:"1"`
SinkBatchSize int `mapstructure:"SINK_BATCH_SIZE" default:"1"`
}
Config contains the configuration for meteor.
Click to show internal directories.
Click to hide internal directories.