Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// PubSubSystem selects the backing message infrastructure. Supported values:
// "kafka", "rabbitmq", or "aws" (SNS/SQS).
PubSubSystem string
// Kafka configuration.
KafkaBrokers []string
KafkaClientID string
KafkaConsumerGroup string
// RabbitMQ configuration.
RabbitMQURL string
// NATS configuration.
NATSURL string
// HTTP configuration.
HTTPServerAddress string
// HTTPPublisherURL is the base URL where messages will be sent.
HTTPPublisherURL string
// I/O configuration.
// IOFile is the path to the file used for persistence.
IOFile string
// PoisonQueue receives messages that cannot be processed even after retries.
PoisonQueue string
// AWS (SNS/SQS) configuration.
AWSRegion string
AWSAccountID string
AWSAccessKeyID string
AWSSecretAccessKey string
// AWSEndpoint optionally points to a custom endpoint (for example, LocalStack
// in local development).
AWSEndpoint string
// RetryMiddleware tuning. Zero values fall back to library defaults.
RetryMaxRetries int
RetryInitialInterval time.Duration
RetryMaxInterval time.Duration
// Metrics configuration.
MetricsEnabled bool
// MetricsPort is the port where Prometheus metrics will be exposed.
MetricsPort int
}
Config groups the Pub/Sub settings required to initialise the Service. Each transport only uses the keys that are relevant to it.
Click to show internal directories.
Click to hide internal directories.