config

package
v1.73.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 2 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 {
	BindAddr                   string        `envconfig:"BIND_ADDR"`
	APIRouterURL               string        `envconfig:"API_ROUTER_URL"`
	APIRouterVersion           string        `envconfig:"API_ROUTER_VERSION"`
	FrontendRouterURL          string        `envconfig:"ROUTER_URL"`
	DatasetControllerURL       string        `envconfig:"DATASET_CONTROLLER_URL"`
	TableRendererURL           string        `envconfig:"TABLE_RENDERER_URL"`
	GracefulShutdownTimeout    time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT"`
	HealthCheckInterval        time.Duration `envconfig:"HEALTHCHECK_INTERVAL"`
	HealthCheckCriticalTimeout time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"`
	SharedConfig               SharedConfig
}

Config represents the configuration required for florence

func Get

func Get() (*Config, error)

Get retrieves the config from the environment for florence

type SharedConfig

type SharedConfig struct {
	EnableDatasetImport     bool `envconfig:"ENABLE_DATASET_IMPORT" json:"enableDatasetImport"`
	EnableNewSignIn         bool `envconfig:"ENABLE_NEW_SIGN_IN" json:"enableNewSignIn"`
	EnableNewUpload         bool `envconfig:"ENABLE_NEW_UPLOAD" json:"enableNewUpload"`
	EnablePermissionsAPI    bool `envconfig:"ENABLE_PERMISSION_API" json:"enablePermissionsAPI"`
	EnableCantabularJourney bool `envconfig:"ENABLE_CANTABULAR_JOURNEY" json:"enableCantabularJourney"`
}

SharedConfig represents the configuration made available to the client-side application from the server

Jump to

Keyboard shortcuts

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