timestamp

package
v0.0.0-...-a26ebea Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Record

func Record(ctx context.Context, rec record.Record) (timestamp.Timestamp, error)

Record uses the embedded timestamp of the record for "event time" semantics.

If you need "processing time" semantics, use WallClock.

func WallClock

func WallClock(ctx context.Context, rec record.Record) (timestamp.Timestamp, error)

WallClock uses the current wall clock timestamp for "processing time" semantics.

If you need "event time" semantics, use Record.

Types

type Extractor

type Extractor func(ctx context.Context, rec record.Record) (timestamp.Timestamp, error)

Extractor represents a function that extracts a timestamp out of context/record flowing through the system.

func Factory

func Factory(name string) (Extractor, error)

Factory returns an Extractor for the given name.

Jump to

Keyboard shortcuts

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