internal

package
v0.0.0-...-9c060cc Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

ConfigDefaultYaml default yaml

Functions

func PrettyJSON

func PrettyJSON(obj interface{}) string

Types

type Config

type Config struct {
	Environment string        `mapstructure:"APPLICATION_ENVIRONMENT"`
	Example     ExampleConfig `mapstructure:"EXAMPLE"`
}

func (*Config) GetOIDCConfig

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

type ExampleConfig

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

Directories

Path Synopsis
grpcContracts
services

Jump to

Keyboard shortcuts

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