env

package
v0.0.0-...-59acd12 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Postgresql host. Default is "127.0.0.1".
	PGHost = "127.0.0.1"
	// Postgresql port. Default is "5432".
	PGPort = "5432"
	// Postgresql username. Default is "postgres".
	PGUsername = "postgres"
	// Postgresql password. Default is "postgres".
	PGPW = "postgres"
	// Postgresql database name. Default is "dev".
	PGDBName = "dev"

	// Redis for authentication host. Default is "localhost".
	RDBAuthHost = "localhost"
	// Redis for authentication host. Default is "6379".
	RDBAuthPort = "6379"
	// Redis for authentication database. Default is "0".
	RDBAuthDB = "0"
	// Redis for authentication password. Default is "".
	RDBAuthPW = ""

	// API Manager host. Default is "localhost".
	APIManagerHost = "localhost"
	// API Manager port. Default is "9000".
	APIManagerPort = "9000"

	// User session cookie time to live (seconds). Default is "604900" (one week).
	UserSessionTTL = "604800"
	// User session token character size. Default is "64".
	UserSessionTokenSize = "64"
	// The bcrypt cost for hashing users password. May vary according
	// to each machine config, the recommended is to set a cost
	// that makes '/login' route take around 200ms. Default is "11".
	UserPWBcryptCost = "11"
)

All enviroment variables

Functions

func Init

func Init()

Init initialize all variables in the package according to the enviroment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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