revision

package
v1.24.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecimalKeyFunc added in v1.16.0

func DecimalKeyFunc(r Decimal) int64

DecimalKeyFunc is used to convert a simple Decimal to an int64 for use in maps.

func DecimalKeyLessThanFunc added in v1.16.0

func DecimalKeyLessThanFunc(lhs, rhs int64) bool

DecimalKeyLessThanFunc is used to compare keys created by the DecimalKeyFunc.

Types

type Decimal

type Decimal struct {
	decimal.Decimal
}
var NoRevision Decimal

func NewFromDecimal

func NewFromDecimal(d decimal.Decimal) Decimal

func (Decimal) Equal

func (d Decimal) Equal(rhs datastore.Revision) bool

func (Decimal) GreaterThan

func (d Decimal) GreaterThan(rhs datastore.Revision) bool

func (Decimal) LessThan

func (d Decimal) LessThan(rhs datastore.Revision) bool

type DecimalDecoder

type DecimalDecoder struct{}

func (DecimalDecoder) RevisionFromString

func (DecimalDecoder) RevisionFromString(s string) (datastore.Revision, error)

Jump to

Keyboard shortcuts

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