common

package
v0.22.13 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 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 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.

func SelectLatestTime added in v0.18.0

func SelectLatestTime(t1, t2 time.Time) time.Time

SelectLatestTime picks the latest update timestamp out of the two.

Types

This section is empty.

Jump to

Keyboard shortcuts

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