config

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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.

func Load

func Load(configFile string) (Config, error)

Jump to

Keyboard shortcuts

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