Documentation
¶
Index ¶
Constants ¶
View Source
const ( // JobsCollectionTitle is the well known name of the MongoDB collection for // migration jobs. JobsCollectionTitle = "MigrationsJobsCollection" // JobsCollectionName is the actual name of the MongoDB collection for // migration jobs. JobsCollectionName = "jobs" // EventsCollectionTitle is the well known name of the MongoDB collection // for migration events. EventsCollectionTitle = "MigrationsEventsCollection" // EventsCollectionName is the actual name of the MongoDB collection for // migration events. EventsCollectionName = "events" // TasksCollectionTitle is the well known name of the MongoDB collection // for migration tasks. TasksCollectionTitle = "MigrationsTasksCollection" // TasksCollectionName is the actual name of the MongoDB collection for // migration tasks. TasksCollectionName = "tasks" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BindAddr string `envconfig:"BIND_ADDR"`
DatasetAPIURL string `envconfig:"DATASET_API_URL"`
EnableMockClients bool `envconfig:"ENABLE_MOCK_CLIENTS"`
FilesAPIURL string `envconfig:"FILES_API_URL"`
GracefulShutdownTimeout time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT"`
HealthCheckInterval time.Duration `envconfig:"HEALTHCHECK_INTERVAL"`
HealthCheckCriticalTimeout time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"`
MigrationServiceURL string `envconfig:"MIGRATION_SERVICE_URL"`
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"`
RedirectAPIURL string `envconfig:"REDIRECT_API_URL"`
ServiceAuthToken string `envconfig:"SERVICE_AUTH_TOKEN"`
UploadServiceURL string `envconfig:"UPLOAD_SERVICE_URL"`
ZebedeeURL string `envconfig:"ZEBEDEE_URL"`
MongoConfig
}
Config represents service configuration for dis-migration-service
type MongoConfig ¶ added in v0.4.0
type MongoConfig struct {
dpMongo.MongoDriverConfig
}
MongoConfig holds MongoDB configuration settings.
Click to show internal directories.
Click to hide internal directories.