config

package
v0.0.0-...-6c79d6b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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 Secrets

type Secrets struct {
	Port      string `json:"port"`
	JWTSecret string `json:"jwt_secret"`
	DBName    string `json:"db_name"`
	DBURL     string `json:"dburl"`
}

Secrets contain all the config that this application needs

func LoadSecrets

func LoadSecrets(filename ...string) *Secrets

LoadSecrets loads secrets from the environment and returns it if a .env file is present, it would be loaded first default values are also set

Jump to

Keyboard shortcuts

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