config

package
v0.0.0-...-c25c7fd Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUEUE_DB_HOST                 = "QUEUE_DB_HOST"
	QUEUE_DB_PORT                 = "QUEUE_DB_PORT"
	QUEUE_DB_USER                 = "QUEUE_DB_USER"
	QUEUE_DB_PASSWORD             = "QUEUE_DB_PASSWORD"
	LOAD_BALANCE_PORT             = "LOAD_BALANCE_PORT"
	TEMP_DB_PATH                  = "TEMP_DB_PATH"
	TOTAL_MEM_QUEUES              = "TOTAL_MEM_QUEUES"
	PERSISTENTCY_BATCH_SIZE       = "PERSISTENTCY_BATCH_SIZE"
	QUEUE_MANAGER_INTERVAL        = "QUEUE_MANAGER_INTERVAL"
	ORCHESTRATOR_MANAGER_INTERVAL = "ORCHESTRATOR_MANAGER_INTERVAL"
	MAX_CONNECTION                = "MAX_CONNECTION"
	MAX_IDLE_CONNECTION           = "MAX_IDLE_CONNECTION"
	CONNECTION_LIFE_TIME          = "CONNECTION_LIFE_TIME"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	QueueDBHost                  string
	QueueDBPort                  int
	QueueDBUser                  string
	QueueDBPassword              string
	LoadBalancePort              int
	TempDBPath                   string
	TotalMemQueues               int
	PersistencyBatchSize         int
	QueueManagerInterval         int
	OrchestrationManagerInterval int
	MaxConnection                int
	MaxIdleConnection            int
	ConnectionLifeTime           int
}

Config represents application configuration

func GetConfig

func GetConfig() *Config

GetConfig returns the singleton configuration instance

func NewConfig

func NewConfig() *Config

LoadConfig loads the configuration from environment variables

func (*Config) GetDns

func (cfg *Config) GetDns() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳