cfconfig

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 3 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

cfconfig

Module to help loading config files from cf

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InfoLogger  *log.Logger
	ErrorLogger *log.Logger
)

Functions

This section is empty.

Types

type Env

type Env struct {
	AppName  string
	RMQ      string
	Postgres string
	Vars     map[string]string
	Services cfenv.Services
}

func LoadEnvironment

func LoadEnvironment(devAppName string, req Requested) Env

LoadEnvironment loads either a dev or cf environment. To set up a dev environment provide the dev fallbacks that you wish to use then. If no dev fallback is specified then it will look in the os environment variables.

type Request

type Request struct {
	Key    string
	DevAlt string
}

type Requested

type Requested []Request

Jump to

Keyboard shortcuts

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