Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TimeTarget

import type { TimeTarget } from "https://googleapis.deno.dev/v1/pubsublite:v1.ts";

A target publish or event time. Can be used for seeking to or retrieving the corresponding cursor.

interface TimeTarget {
eventTime?: Date;
publishTime?: Date;
}

§Properties

§
eventTime?: Date
[src]

Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.

§
publishTime?: Date
[src]

Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.