config

package
v0.0.0-...-ea7eeef Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BindHost     string `envconfig:"default=0.0.0.0"`
	HTTPBindPort int    `envconfig:"default=8001"`

	Auth struct {
		Provider string

		Keycloak struct {
			ClientId     string
			ClientSecret string
			RealmName    string
			Url          string
		} `envconfig:"optional"`
	}
	KubeconfigPath string `envconfig:"default=/root/.kube/config"`
	DebugLogs      bool   `envconfig:"default=false"`
	Sentry         struct {
		Dsn string `envconfig:"optional,SENTRY_DSN"`
	}
	Posthog struct {
		ApiKey string `envconfig:"optional,POSTHOG_API_KEY"`
	}
	Cors struct {
		AllowedOrigins []string `envconfig:"default=https://*;http://*"`
	}
}

Config struct

func InitConfig

func InitConfig(prefix string, log logging.Logger) (*Config, error)

InitConfig func

Jump to

Keyboard shortcuts

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