config

package
v0.0.0-...-11fd6c2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C struct {
	Port                int    `envconfig:"PORT"`
	GoogleCloudProject  string `envconfig:"GOOGLE_CLOUD_PROJECT"`
	AmazonPAPIAccessKey string `envconfig:"AMAZON_PAPI_ACCESS_KEY"`
	AmazonPAPISecretKey string `envconfig:"AMAZON_PAPI_SECRET_KEY"`
}

C is the struct that holds all configuration properties.

func New

func New() (C, error)

New parses config values from environment variables.

Jump to

Keyboard shortcuts

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