Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BatchSize int `env:"BATCH_SIZE"` // default: 100 Interval time.Duration `env:"INTERVAL"` // default: 1s Timeout time.Duration `env:"TIMEOUT"` // default: 10s }
Config holds the worker configuration. The zero value is a valid configuration.
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is a worker that sends messages from the outbox to Kafka. It should be created with NewWorker.
Click to show internal directories.
Click to hide internal directories.