config

package
v0.0.0-...-3d9bb29 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

Types

type Config

type Config struct {
	Server struct {
		Host string `envconfig:"SERVER_HOST" default:"localhost"`
		Port int    `envconfig:"SERVER_PORT"`
	}
	Authentication struct {
		BasicUsername string `envconfig:"AUTH_BASIC_USERNAME"`
		BasicPassword string `envconfig:"AUTH_BASIC_PASSWORD"`
		PrivateKey    string `envconfig:"AUTH_JWT_PRIVATE_KEY"`
		PublicKey     string `envconfig:"AUTH_JWT_PUBLIC_KEY"`
	}
	Database struct {
		URI string `envconfig:"DB_URI"`
	}
	Apm struct {
		Active bool `envconfig:"ELASTIC_APM_ACTIVE" default:"false"`
	}
}
var GlobalConfig Config = Config{}

Jump to

Keyboard shortcuts

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