config

package
v0.0.0-...-a5508f6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 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"`
	ENV                 string `envconfig:"ENV"`
	GoogleCloudProject  string `envconfig:"GOOGLE_CLOUD_PROJECT"`
	ImageStorageBucket  string `envconfig:"PURCHASE_PLAN_IMAGE_BUCKET"`
	AmazonPAPIAccessKey string `secretmanager:"AMAZON_PAPI_ACCESS_KEY"`
	AmazonPAPISecretKey string `secretmanager:"AMAZON_PAPI_SECRET_KEY"`
	MagicSecretKey      string `secretmanager:"MAGIC_SECRET_KEY"`
	JwtSecret           string `secretmanager:"JWT_SECRET"`
}

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