Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poller ¶
Poller is used to poll user subscription query.
func NewPoller ¶
func NewPoller(globalEpoch *uint64, resolver *resolve.RequestResolver) *Poller
NewPoller returns Poller.
func (*Poller) AddSubscriber ¶
func (p *Poller) AddSubscriber(req *schema.Request) (*SubscriberResponse, error)
AddSubscriber tries to add subscription into the existing polling goroutine if it exists. If it doesn't exist, then it creates a new polling goroutine for the given request.
func (*Poller) TerminateSubscription ¶
type SubscriberResponse ¶
SubscriberResponse holds the meta data about subscriber.
Click to show internal directories.
Click to hide internal directories.