config

package
v0.0.0-...-c2689a6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Http = httpConfig{
		ListenPort: getenv("HTTP_LISTEN_PORT", "80"),
		AppKey:     os.Getenv("HTTP_APP_KEY"),
		SecretKey:  os.Getenv("HTTP_SECRET_KEY"),
	}

	Redis = redisConfig{
		Address:  fmt.Sprintf("%s:%s", os.Getenv("REDIS_HOST"), getenv("REDIS_PORT", "6379")),
		Password: getenv("REDIS_PASSWORD", ""),
		DB:       getenv("REDIS_DB", "0"),
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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