env

package
v0.0.0-...-5a03b40 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package env implements environment-related functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Addr holds the value of the ADDR environment variable.
	Addr string

	// APIKey holds the value of the API_KEY environment variable.
	APIKey string

	// PurgeryID holds the value of the PURGERY_ID environment value.
	PurgeryID string

	// Redis holds a reference to the Redis connection pool.
	Redis *redis.Pool

	// VarnishAddr holds the value of the VARNISH_ADDR environment value.
	VarnishAddr string
}

Config wraps

func LoadConfig

func LoadConfig(logger *zap.Logger) (*Config, error)

LoadConfig returns a copy of the configuration it loads from the environment.

Jump to

Keyboard shortcuts

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