app_env

package
v0.0.0-...-a78ea47 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PORT      = "PORT"
	ENV_SCOPE = "ENV_SCOPE"
	APP_ID    = "APP_ID"
	APP_CERT  = "APP_CERT"
)
View Source
const (
	PORT_FILE      = "PORT_FILE"
	ENV_SCOPE_FILE = "ENV_SCOPE_FILE"
	APP_ID_FILE    = "APP_ID_FILE"
	APP_CERT_FILE  = "APP_CERT_FILE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InitEnvInterface

type InitEnvInterface interface {
	LoadEnvFile(providePath func() string)
	GetEnvScope() (string, error)
	GetAppId() (string, error)
	GetAppCert() (string, error)
	GetServerPort() (string, error)
}
var (
	InitEnv InitEnvInterface = &initenv{}
)

Abstract layer get enviroment variable keys and method to load the env files

Jump to

Keyboard shortcuts

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