config

package
v0.0.0-...-2bd052e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDevelopment

func IsDevelopment() bool

func IsProduction

func IsProduction() bool

Types

type Configuration

type Configuration struct {
	Environment        string `mapstructure:"environment"`
	Version            string `mapstructure:"version"`
	Port               uint16 `mapstructure:"port"`
	DBPort             string `mapstructure:"db_port"`
	LogLevel           string `mapstructure:"log_level"`
	DBUser             string `mapstructure:"db_user"`
	DBHost             string `mapstructure:"db_host"`
	DBName             string `mapstructure:"db_name"`
	DBPassword         string `mapstructure:"db_password"`
	KafkaClientID      string `mapstructure:"kafka_clientID"`
	KafkaTxnID         string `mapstructure:"kafka_txnID"`
	KafkaBrokers       string `mapstructure:"kafka_brokers"`
	KafkaGroup         string `mapstructure:"kafka_group"`
	SaslEnable         bool   `mapstructure:"sasl_enable"`
	SaslMechanism      string `mapstructure:"sasl_mechanism"`
	KafkaUsername      string `mapstructure:"kafka_username"`
	KafkaPassword      string `mapstructure:"kafka_password"`
	AlphaVantageApiKey string `mapstructure:"alpha_vantage"`
	FinHistoryApiKey   string `mapstructure:"fin_history"`
}
var (
	Spec *Configuration
)

Jump to

Keyboard shortcuts

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