common

package
Version: v0.17.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

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

func SelectEarliestUpdatedAt(old, curr, ims time.Time) time.Time

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL