pgxlog

package
v0.0.0-...-8488f5b Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Zero xlog.Position = "0/00000000"

Variables

This section is empty.

Functions

This section is empty.

Types

type PgXLog

type PgXLog struct{}

func (PgXLog) Compare

func (p PgXLog) Compare(xlog1, xlog2 xlog.Position) (int, error)

Compare compares two xlog positions returning -1 if xlog1 < xlog2, 0 if xlog1 == xlog2, and 1 if xlog1 > xlog2.

func (PgXLog) Increment

func (p PgXLog) Increment(pos xlog.Position, increment int) (xlog.Position, error)

Increment increments an xlog position by the given number.

func (PgXLog) Zero

func (p PgXLog) Zero() xlog.Position

Jump to

Keyboard shortcuts

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