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

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