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"`
ZebedeeURL string `envconfig:"ZEBEDEE_URL"`
ZebedeeClientTimeout time.Duration `envconfig:"ZEBEDEE_CLIENT_TIMEOUT"`
MongoConfig
AuthConfig *authorisation.Config
}
Config represents service configuration for dis-bundle-api
type MongoConfig ¶ added in v1.0.0
type MongoConfig struct {
mongodriver.MongoDriverConfig
}
Click to show internal directories.
Click to hide internal directories.