Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Publish ¶
func Publish(topic model.AllocationID, event sproto.ResourcesEvent)
Publish an event for the provided allocation.
func Subscribe ¶
func Subscribe(topic model.AllocationID) *sproto.ResourcesSubscription
Subscribe to events for the given allocation. Returns a subscription with a channel to listen to events. When finished listening, callers should call `AllocationSubscription.Close()`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.