Documentation ¶
Overview ¶
Package subscriptions implements the events mux subscriptions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // Subscribe subscribes to events. Subscribe( id uint64, identifiers []*ttnpb.EntityIdentifiers, after *time.Time, tail uint32, names []string, ) error // Unsubscribe unsubscribe to events. Unsubscribe(id uint64) error // SubscriptionEvents provides the events for the underlying subscriptions. SubscriptionEvents() <-chan *SubscriptionEvent // Close closes all of the underlying subscriptions and waits for the background tasks to finish. Close() error }
Interface is the interface for the events mux subscriptions.
type SubscriptionEvent ¶
SubscriptionEvent wraps an events.Event with a subscription ID.
Click to show internal directories.
Click to hide internal directories.