config

package
v0.0.0-...-b5ce554 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	AppName    string `env:"APP_NAME" envDefault:"blueprint-roa-golang"`
	Port       int    `env:"PORT" envDefault:"3020"`
	HttpPort   int    `env:"HTTP_PORT" envDefault:"3021"`
	Env        string `env:"ENV" envDefault:"localhost"`
	DbDriver   string `env:"DB_DRIVER" envDefault:"postgres"`
	DbHost     string `env:"DB_HOST" envDefault:"127.0.0.1"`
	DbPort     string `env:"DB_PORT" envDefault:"5432"`
	DbUser     string `env:"DB_USER" envDefault:"postgres"`
	DbName     string `env:"DB_NAME" envDefault:"products"`
	DbPassword string `env:"DB_PASSWORD" envDefault:"postgres"`
	Jaeger     Jaeger
}

func NewConfiguration

func NewConfiguration() Configuration

type Jaeger

type Jaeger struct {
	JaegerAgentHost string `env:"JAEGER_HOST" envDefault:"localhost"`
	JaegerAgentPort string `env:"JAEGER_PORT" envDefault:"6831"`
}

Jump to

Keyboard shortcuts

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