config

package
v0.0.1-alpha2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvRedisURL     = "REDIS_URL"
	EnvRedisHost    = "REDIS_HOST"
	EnvRedisPort    = "REDIS_PORT"
	EnvRedisDB      = "SNAPPASS_REDIS_DB"
	EnvRedisPrefix  = "REDIS_PREFIX"
	EnvStaticURL    = "STATIC_URL"
	EnvURLPrefix    = "URL_PREFIX"
	EnvHostOverride = "HOST_OVERRIDE"
	EnvNoSSL        = "NO_SSL"

	// EnvListenString is the server address on which to listen.,
	// e.g. 192.168.10.10:5000, :1234, etc.
	// The python implementation uses flask which has other environment variables that we
	// will not implement.
	EnvListenString = "SNAPPASS_LISTEN_ADDRESS"
)

Variables

This section is empty.

Functions

func RedisConnectionOptions

func RedisConnectionOptions() (host, port string, db int)

RedisConnectionOptions returns environment-provided host, port, and db values, or defaults if those are unset.

func RedisURL

func RedisURL() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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