env

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package env contains all about environment variables, that can be used by current application.

Index

Constants

View Source
const (
	// ListenAddr is IP address for listening.
	ListenAddr envVariable = "LISTEN_ADDR"

	// ListenPort is port number for listening.
	ListenPort envVariable = "LISTEN_PORT"

	// ResourcesDir is a directory with resources.
	ResourcesDir envVariable = "RESOURCES_DIR"

	// ConfigPath is a path to the configuration file.
	ConfigPath envVariable = "CONFIG_PATH"

	// CachingEngine is a caching engine name (like "redis", "memory" or something else).
	CachingEngine envVariable = "CACHING_ENGINE"

	// CacheTTL is a cache items life time.
	CacheTTL envVariable = "CACHE_TTL"

	// RedisDSN is URL-like redis connection string <https://redis.uptrace.dev/#connecting-to-redis-server>.
	RedisDSN envVariable = "REDIS_DSN"
)

Variables

This section is empty.

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