config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 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 ServerConfig

type ServerConfig struct {
	ProfileImageBaseUrl string `envconfig:"PROFILE_IMAGE_BASE_URL" required:"true" default:"https://api.goyotashi.kmconner.net/images"`
	DBHost              string `envconfig:"DB_HOST" default:"goyotashi-mysql"`
	DBPort              uint16 `envconfig:"DB_PORT" default:"3306"`
	DBDatabaseName      string `envconfig:"DB_NAME" default:"goyotashi"`
	DBUser              string `envconfig:"DB_USER" default:"goyotashi"`
	DBPassword          string `envconfig:"DB_PASSWORD" default:"password"`
	HotpepperApiKey     string `envconfig:"HOTPEPPER_KEY" required:"true"`
}

func LoadServerConfig

func LoadServerConfig() (*ServerConfig, error)

Jump to

Keyboard shortcuts

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