config

package
v0.0.0-...-4b9dede Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV             = "ENV"
	ENV_DEVELOPMENT = "development"
	ENV_QA          = "qa"
	ENV_MOCK        = "mock"
	ENV_PRODUCTION  = "production"
)

noinspection ALL

View Source
const (
	HTTP_PORT          = "HTTP_PORT"
	HTTP_PROFILER_PORT = "HTTP_PROFILER_PORT"

	DATABASE_CONNECTION_STRING = "DATABASE_CONNECTION_STRING"

	DATABASE_DRIVER = "DATABASE_DRIVER"
	DATABASE_HOST   = "DATABASE_HOST"
	DATABASE_PORT   = "DATABASE_PORT"
	DATABASE_USER   = "DATABASE_USER"
	DATABASE_PASS   = "DATABASE_PASS"
	DATABASE_NAME   = "DATABASE_NAME"
	DATABASE_SSL    = "DATABASE_SSL"

	REDIS_ADDRESS  = "REDIS_ADDRESS"
	REDIS_PASSWORD = "REDIS_PASSWORD"
	REDIS_DB       = "REDIS_DB"

	MIGRATION_PATH = "MIGRATION_PATH"

	USER_DEFAULT_ROLE = "USER_DEFAULT_ROLE"

	VAULT_TOKEN   = "VAULT_TOKEN"
	VAULT_ADDRESS = "VAULT_ADDRESS"
	SERVICE_NAME  = "SERVICE_NAME"
)

noinspection ALL

Variables

This section is empty.

Functions

func GetFlavor

func GetFlavor() string

func GetValue

func GetValue(key string) string

func GetWorkingDirectory

func GetWorkingDirectory() (string, error)

func SetValue

func SetValue(key string, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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