appConfig

package
v0.0.0-...-eacb4e8 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Enabled   bool
	Providers map[string]AuthProvider
}

Auth stores configuration about OpenId Connect Providers and etc.

type AuthProvider

type AuthProvider struct {
	Name     string `json:"name"`
	Issuer   string `json:"issuer"`
	ClientID string `json:"clientId"`
	JWKsURL  string `json:"jwksUrl"`
	Scope    string `json:"scope"`
}

AuthProvider - struct for store OpenId connect provider configuration

type Configuration

type Configuration struct {
	CoreAPIURL string
	Port       string
	Security   Security
}

Configuration stores all app configuration

func LoadConfiguration

func LoadConfiguration() (*Configuration, error)

LoadConfiguration loads configuration from config files and env variables

type Security

type Security struct {
	Auth Auth
}

Security - stores security configuration

Jump to

Keyboard shortcuts

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