config

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BundlesCollection        = "BundlesCollection"
	BundleEventsCollection   = "BundleEventsCollection"
	BundleContentsCollection = "BundleContentsCollection"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig added in v1.2.0

type AuthConfig = authorisation.Config

type Config

type Config struct {
	BindAddr                   string        `envconfig:"BIND_ADDR"`
	DatasetAPIURL              string        `envconfig:"DATASET_API_URL"`
	GracefulShutdownTimeout    time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT"`
	HealthCheckInterval        time.Duration `envconfig:"HEALTHCHECK_INTERVAL"`
	HealthCheckCriticalTimeout time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"`
	OTBatchTimeout             time.Duration `encconfig:"OTEL_BATCH_TIMEOUT"`
	OTExporterOTLPEndpoint     string        `envconfig:"OTEL_EXPORTER_OTLP_ENDPOINT"`
	OTServiceName              string        `envconfig:"OTEL_SERVICE_NAME"`
	OtelEnabled                bool          `envconfig:"OTEL_ENABLED"`
	DefaultMaxLimit            int           `envconfig:"DEFAULT_MAXIMUM_LIMIT"`
	DefaultLimit               int           `envconfig:"DEFAULT_LIMIT"`
	DefaultOffset              int           `envconfig:"DEFAULT_OFFSET"`
	EnablePermissionsAuth      bool          `envconfig:"ENABLE_PERMISSIONS_AUTH"`
	SlackEnabled               bool          `envconfig:"SLACK_ENABLED"`
	ZebedeeURL                 string        `envconfig:"ZEBEDEE_URL"`
	ZebedeeClientTimeout       time.Duration `envconfig:"ZEBEDEE_CLIENT_TIMEOUT"`
	MongoConfig
	AuthConfig  *authorisation.Config
	SlackConfig *slack.SlackConfig
}

Config represents service configuration for dis-bundle-api

func Get

func Get() (*Config, error)

Get returns the default config with any modifications through environment variables

type MongoConfig added in v1.0.0

type MongoConfig struct {
	mongodriver.MongoDriverConfig
}

Jump to

Keyboard shortcuts

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