eventtoken

package
v2.1.0-alpha.2+incompa... Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Overview

Package eventtoken includes utility methods for event token handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fresher

func Fresher(ev1, ev2 *querypb.EventToken) int

Fresher compares two event tokens. It returns a negative number if ev1<ev2, zero if they're equal, and a positive number if ev1>ev2. In case of doubt (we don't have enough information to know for sure), it returns a negative number.

func Minimum

func Minimum(ev1, ev2 *querypb.EventToken) *querypb.EventToken

Minimum returns an event token that is guaranteed to happen before both provided EventToken objects.

FIXME(alainjobart) for now, we always strip the shard and position, and only look at timestamp. It is only used across shards so it's not a big deal. When we compare values within a shard, we'll have to fix this.

Types

This section is empty.

Jump to

Keyboard shortcuts

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