options

package
v0.0.0-...-22bf50c Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: Apache-2.0 Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AppSettings is a global variable that holds the application settings
	AppSettings = defaultSettings()
)

Functions

func LoadFromEnvironment

func LoadFromEnvironment() error

LoadFromEnvironment will try to load all the options from environment variables. It will return an error if the required options are not available. The required environment variables are:

     UPSTREAM_TOKENINFO_URL
     OPENID_PROVIDER_CONFIGURATION_URL
	REVOCATION_PROVIDER_URL

The remaining options have sane defaults and are not mandatory

Types

type Settings

type Settings struct {
	ListenAddress                     string
	MetricsListenAddress              string
	UpstreamTokenInfoURL              *url.URL
	UpstreamTimeout                   time.Duration
	UpstreamCacheMaxSize              int64
	UpstreamCacheTTL                  time.Duration
	OpenIDProviderConfigurationURL    *url.URL
	OpenIDProviderRefreshInterval     time.Duration
	HTTPClientTimeout                 time.Duration
	HTTPClientTLSTimeout              time.Duration
	RevocationCacheTTL                time.Duration
	RevocationProviderRefreshInterval time.Duration
	RevocationRefreshTolerance        time.Duration
	RevocationProviderUrl             *url.URL
	HashingSalt                       string
	JwtProcessors                     map[string]processor.JwtProcessor
}

The Settings type contains the application configurable options

Jump to

Keyboard shortcuts

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