env

package
v0.0.0-...-73d27da Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BD_OPT = os.Getenv("BD_OPT") // MONGO o REDIS - default REDIS
View Source
var MONGO_HOST = os.Getenv("MONGO_HOST")
View Source
var MONGO_PASS = os.Getenv("MONGO_PASS")
View Source
var MONGO_USER = os.Getenv("MONGO_USER")
View Source
var PORT = os.Getenv("PORT")
View Source
var REDIS_HOST = os.Getenv("REDIS_HOST") // Default localhost:6379
View Source
var REDIS_PASS = os.Getenv("REDIS_PASS") // Default ""
View Source
var Router *mux.Router

Functions

func Init

func Init() bool

Función encargado de cargar las variables de entorno en variables globales del aplicativo en caso de que no existan variables de entorno, las setea con valores por defecto.

func Reload

func Reload() bool

Función para recargar las variables de entorno

Types

This section is empty.

Jump to

Keyboard shortcuts

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