config

package
v0.0.0-...-a49cb6e Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JwksURLEnv                  = "JWKS_URL"
	ForceJwksOnStart            = "FORCE_JWKS_ON_START"
	ForceJwksOnStartDefault     = "true"
	ClaimMappingFileEnv         = "CLAIM_MAPPING_FILE_PATH"
	ClaimMappingFileDefault     = "config.json"
	AuthHeaderEnv               = "AUTH_HEADER_KEY"
	AuthHeaderDefault           = "Authorization"
	TokenValidatedHeaderEnv     = "TOKEN_VALIDATED_HEADER_KEY"
	TokenValidatedHeaderDefault = "jwt-token-validated"
	AuthHeaderRequired          = "AUTH_HEADER_REQUIRED"
	AuthHeaderRequiredDefault   = "false"
	PortEnv                     = "PORT"
	PortDefault                 = "8080"
	LogLevelEnv                 = "LOG_LEVEL"
	LogLevelDefault             = "info"
	LogTypeEnv                  = "LOG_TYPE"
	LogTypeDefault              = "json"
	MaxCacheKeysEnv             = "MAX_CACHE_KEYS"
	MaxCacheKeysDefault         = "10000"
	CacheEnabledEnv             = "CACHE_ENABLED"
	CacheEnabledDefault         = "true"
	ClaimMappingsEnv            = "CLAIM_MAPPINGS"
)

Env variable constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config to bootstrap decoder server

func NewConfig

func NewConfig() *Config

NewConfig creates a new Config from the current env

func (*Config) PingHandler

func (c *Config) PingHandler(rw http.ResponseWriter, r *http.Request)

func (*Config) RunServer

func (c *Config) RunServer() (chan error, net.Listener)

RunServer starts a server from the config

Jump to

Keyboard shortcuts

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