config

package
v0.0.0-...-ae36b9e Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultVars = &Vars{}

Functions

func MustProcessDefault

func MustProcessDefault()

Types

type Vars

type Vars struct {
	MySQLUser     string `envconfig:"MYSQL_USER"`
	MySQLPassword string `envconfig:"MYSQL_PASSWORD"`
	MySQLHost     string `envconfig:"MYSQL_HOST"`
	MySQLPort     string `envconfig:"MYSQL_PORT"`
	MySQLDatabase string `envconfig:"MYSQL_DATABASE"`

	HTTPPort int `envconfig:"PORT" default:"5001"`

	JaegerAgentEndpoint     string `enconfig:"JAEGER_AGENT_ENDPOINT"`
	JaegerCollectorEndpoint string `envconfig:"JAEGER_COLLECTOR_ENDPOINT"`
}

func MustProcess

func MustProcess() *Vars

func Process

func Process() (*Vars, error)

func (*Vars) DBURL

func (v *Vars) DBURL() string

Jump to

Keyboard shortcuts

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