Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskPublisher ¶
type TaskPublisher interface {
// PublishChanged publishes an upsert event for the given task.
PublishChanged(ctx context.Context, task lib.Task) error
// PublishDeleted publishes a deletion event for the given task identifier.
PublishDeleted(ctx context.Context, id lib.TaskIdentifier) error
}
TaskPublisher publishes task change and deletion events to Kafka.
func NewTaskPublisher ¶
func NewTaskPublisher( syncProducer libkafka.SyncProducer, schemaID cdb.SchemaID, branch string, ) TaskPublisher
NewTaskPublisher creates a TaskPublisher that sends events to Kafka.
Click to show internal directories.
Click to hide internal directories.