Documentation ¶
Index ¶
Constants ¶
View Source
const ( MetadataCollection = "MetadataCollection" CollectionsCollection = "CollectionsCollection" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig = authorisation.Config
type Config ¶
type Config struct { BindAddr string `envconfig:"BIND_ADDR"` AwsRegion string `envconfig:"AWS_REGION"` PrivateBucketName string `envconfig:"S3_PRIVATE_BUCKET_NAME"` LocalstackHost string `envconfig:"LOCALSTACK_HOST"` GracefulShutdownTimeout time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT"` HealthCheckInterval time.Duration `envconfig:"HEALTHCHECK_INTERVAL"` HealthCheckCriticalTimeout time.Duration `envconfig:"HEALTHCHECK_CRITICAL_TIMEOUT"` IsPublishing bool `envconfig:"IS_PUBLISHING"` MaxNumBatches int `envconfig:"MAX_NUM_BATCHES"` MinBatchSize int `envconfig:"MIN_BATCH_SIZE"` MongoConfig KafkaConfig AuthConfig }
Config represents service configuration for dp-files-api
type KafkaConfig ¶
type KafkaConfig struct { Addr []string `envconfig:"KAFKA_ADDR" json:"-"` ProducerMinBrokersHealthy int `envconfig:"KAFKA_PRODUCER_MIN_BROKERS_HEALTHY"` Version string `envconfig:"KAFKA_VERSION"` MaxBytes int `envconfig:"KAFKA_MAX_BYTES"` SecProtocol string `envconfig:"KAFKA_SEC_PROTO"` SecCACerts string `envconfig:"KAFKA_SEC_CA_CERTS"` SecClientKey string `envconfig:"KAFKA_SEC_CLIENT_KEY" json:"-"` SecClientCert string `envconfig:"KAFKA_SEC_CLIENT_CERT"` SecSkipVerify bool `envconfig:"KAFKA_SEC_SKIP_VERIFY"` StaticFilePublishedTopic string `envconfig:"STATIC_FILE_PUBLISHED_TOPIC"` }
KafkaConfig contains the config required to connect to Kafka
type MongoConfig ¶
type MongoConfig = mongodb.MongoDriverConfig
Click to show internal directories.
Click to hide internal directories.