config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTargets

func GetTargets(cfg *Environment) (*pkg.Targets, error)

func PrepareQueues

func PrepareQueues(connection *rmq.Connection, targets *pkg.Targets, startImmediately bool) (*pkg.RMQueues, error)

Types

type Environment

type Environment struct {
	Port       int64 `env:"PORT,default=8080"`
	Production bool  `env:"PRODUCTION,default=false"`
	Redis      struct {
		Address  string `env:"REDIS_URL"`
		Password string `env:"REDIS_PASS,default_value="`
		Database int    `env:"REDIS_DB,default_value=0"`
	}
	ConfigFile string `env:"CONFIG_PATH"`
	Extras     env.EnvSet
}

func GetConfig

func GetConfig() (*Environment, error)

Jump to

Keyboard shortcuts

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