pkgapp

package
v0.0.0-...-15a92f0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEnv

type AppEnv struct {
	// See lion for the log environment variables.
	LionEnv envlion.Env
	// See pkgmetrics for the metrics environment variables.
	MetricsEnv pkgmetrics.Env
}

AppEnv is the struct that represents the environment variables used by an app.

func GetAppEnv

func GetAppEnv() (AppEnv, error)

GetAppEnv gets the AppEnv from the environment.

type AppOptions

type AppOptions struct {
	// The registry to use.
	// Can be nil
	MetricsRegistry metrics.Registry
}

AppOptions are options for a new app.

func GetAndSetupAppEnv

func GetAndSetupAppEnv() (AppOptions, error)

GetAndSetupAppEnv does GetAppEnv then SetupAppEnv.

func SetupAppEnv

func SetupAppEnv(appEnv AppEnv) (AppOptions, error)

SetupAppEnv does the setup for AppEnv.

Jump to

Keyboard shortcuts

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