environment

package
v0.0.0-...-bd503fb Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package environment manages the environment variables passed into the applications

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPISecret

func GetAPISecret() []byte

GetAPISecret exists as we don't want others accessing the var for editing purposes.

Types

type ConfigMap

type ConfigMap struct {
	App    web          `yaml:"web"`
	Api    api          `yaml:"api"`
	DB     db           `yaml:"db"`
	Stripe configStripe `yaml:"stripe"`
}

func ReadEnvironmentFile

func ReadEnvironmentFile() (*ConfigMap, error)

ReadEnvironmentFile reads the content of the web.config yaml file and parses them into a ConfigMap struct.

Jump to

Keyboard shortcuts

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