config

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 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 {
	LogLevel                    string `mapstructure:"LOG_LEVEL" default:"info"`
	StatsdEnabled               bool   `mapstructure:"STATSD_ENABLED" default:"false"`
	StatsdHost                  string `mapstructure:"STATSD_HOST" default:"localhost:8125"`
	StatsdPrefix                string `mapstructure:"STATSD_PREFIX" default:"meteor"`
	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"`
}

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