Documentation ¶
Overview ¶
Package common contains utility methods used by all adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectEarliestUpdatedAt ¶
SelectEarliestUpdatedAt picks the oldest timestamp which is still newer than the threshold ims. The 'old' can be less than 'ims', the 'curr' must be greater than 'ims'.
func SelectEarliestUpdatedSubs ¶
func SelectEarliestUpdatedSubs(subs []t.Subscription, opts *t.QueryOpt, maxResults int) []t.Subscription
SelectEarliestUpdatedSubs selects no more than the given number of subscriptions from the given slice satisfying the query. When the number of subscriptions is greater than the limit, the subscriptions with the earliest timestamp are selected.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.