snapshot

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToken

func NewToken(value types.XID8) 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 types.XID8
}

Token - Structure for Token

func (Token) Eg

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

Eg snapshot is equal to given snapshot

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