env

package
v0.0.0-...-76fc54f Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 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 Environments

type Environments struct {
	Port        string `default:"7712" split_words:"true"`
	Debug       bool   `default:"false" split_words:"true"`
	AccessLog   bool   `default:"false" split_words:"true"`
	SpecEnabled bool   `default:"false" split_words:"true"`
	SpecFiles   string `default:"./swagger-ui" split_words:"true"`
	LogLevel    string `default:"warn" split_words:"true"`

	// bigtable
	ProjectID  string `split_words:"true"`
	InstanceID string `split_words:"true"`
	TableName  string `split_words:"true"`

	// secret
	Secret string `split_words:"true"`
}

Environments "split_words" means underscores will be inserted to env name before uppercase's letters except the first letter. ex. AccessLog => ACCESS_LOG IF the env name contains an abbreviation (e.g. ID, URL, or API), please use "envconfig" rather than "split_words".

var (
	// Env is worker's environment variable struct.
	Env Environments
)

Jump to

Keyboard shortcuts

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