Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct {
// ResourceID the GUID of a resource.
ResourceID string
// DeletionTimestamp describes whether the resource is being deleted
// or not, and is used for routing. If not set this is a creation or
// update event.
DeletionTimestamp *time.Time
}
Envelope is a generic messaging envelope for resource messages.
type Queue ¶
type Queue interface {
// Run starts the event queue consumption. This is a blocking call.
Run(ctx context.Context, consumers ...Consumer) error
}
Queue is an abstract message queue client, the exact implementation is defined by the implementation. A queue must always replay all active resources, so we can witness missed events on a restart. If an error is encontered when the consumer is invoked, then the event must be requeued to mitigate transient errors.
Click to show internal directories.
Click to hide internal directories.