snapshot

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToken

func NewToken(value time.Time) token.SnapToken

NewToken - Creates a new snapshot token

Types

type EncodedToken

type EncodedToken struct {
	Value string
}

EncodedToken - Structure for EncodedToken

func (EncodedToken) Decode

func (t EncodedToken) Decode() (token.SnapToken, error)

Decode decodes the token from a string

func (EncodedToken) String

func (t EncodedToken) String() string

Decode decodes the token from a string

type Token

type Token struct {
	Value uint64
}

Token - Structure for Token

func (Token) Eg

func (t Token) Eg(token token.SnapToken) bool

Eg token is equal to given token

func (Token) Encode

func (t Token) Encode() token.EncodedSnapToken

Encode - Encodes the token to a string

func (Token) Gt

func (t Token) Gt(token token.SnapToken) bool

Gt snapshot is greater than given snapshot

func (Token) Lt

func (t Token) Lt(token token.SnapToken) bool

Lt snapshot is less than given snapshot

Jump to

Keyboard shortcuts

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