config

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigDefaultJSON = []byte(`
{
	"APPLICATION_ENVIRONMENT": "in-environment",
	"CLAIMS_PRINCIPAL_MIDDLEWARE": "development",
	"EXAMPLE": {
	  "ENABLE_TRANSIENT_2": true,
	  "PORT": 1111,
	  "OIDC_CONFIG": {
		"AUTHORITY": "https://in-environment/",
		"CRON_REFRESH_SCHEDULE": "@every 0h1m0s"
	  }
	}
  }
`)

ConfigDefaultJSON default yaml

Functions

This section is empty.

Types

type Config

type Config struct {
	ApplicationEnvironment    string        `json:"applicationEnvironment" mapstructure:"APPLICATION_ENVIRONMENT"`
	Example                   ExampleConfig `json:"example" mapstructure:"EXAMPLE"`
	ClaimsPrincipalMiddleware string        `json:"claimsPrincipalMiddleware" mapstructure:"CLAIMS_PRINCIPAL_MIDDLEWARE"`
}

Config type

func (*Config) GetOIDCConfig

func (c *Config) GetOIDCConfig() oidc.IOIDCConfig

GetOIDCConfig gets config

type ExampleConfig

type ExampleConfig struct {
	Port             int             `mapstructure:"PORT"`
	Mode             string          `mapstructure:"MODE"`
	OIDCConfig       oidc.OIDCConfig `mapstructure:"OIDC_CONFIG"`
	EnableTransient2 bool            `mapstructure:"ENABLE_TRANSIENT_2"`
}

ExampleConfig type

Jump to

Keyboard shortcuts

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