config

package module
v0.0.0-...-81f4724 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvWithDefaultDuration

func GetEnvWithDefaultDuration(k string, def time.Duration) time.Duration

func GetEnvWithDefaultInt

func GetEnvWithDefaultInt(k string, def uint) uint

func GetEnvWithDefaultString

func GetEnvWithDefaultString(k string, def string) string

Types

type Config

type Config struct {
	DeployEnv  string
	AWSRegion  string
	Logger     lager.Logger
	ListenPort uint

	CFClientConfig *cfclient.Config
	ServiceName    string

	ServicePlanUpdateSchedule time.Duration
}

func NewConfigFromEnv

func NewConfigFromEnv(defaultServiceName string) Config

Jump to

Keyboard shortcuts

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