config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DatabaseUser     string `mapstructure:"POSTGRES_USER"`
	DatabasePassword string `mapstructure:"POSTGRES_PASSWORD"`
	DatabaseHost     string `mapstructure:"POSTGRES_HOST"`
	DatabasePort     string `mapstructure:"POSTGRES_PORT"`
	DatabaseName     string `mapstructure:"POSTGRES_DB"`
	ServerPort       string `mapstructure:"SERVER_PORT"`
	OsrmUrl          string `mapstructure:"OSRM_URL"`
	ValhallaUrl      string `mapstructure:"VALHALLA_URL"`
}

func LoadConfig

func LoadConfig(path string) (config Config, err error)

Jump to

Keyboard shortcuts

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