idx

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 1 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block uint64

Block numeration.

func BytesToBlock

func BytesToBlock(b []byte) Block

BytesToBlock converts bytes to block index.

func (Block) Bytes

func (b Block) Bytes() []byte

Bytes gets the byte representation of the index.

type Epoch

type Epoch uint32

Epoch numeration.

func BytesToEpoch

func BytesToEpoch(b []byte) Epoch

BytesToEpoch converts bytes to epoch index.

func (Epoch) Bytes

func (e Epoch) Bytes() []byte

Bytes gets the byte representation of the index.

type Event

type Event uint32

Event numeration.

func BytesToEvent

func BytesToEvent(b []byte) Event

BytesToEvent converts bytes to event index.

func (Event) Bytes

func (e Event) Bytes() []byte

Bytes gets the byte representation of the index.

type Frame

type Frame uint32

Frame numeration.

func BytesToFrame

func BytesToFrame(b []byte) Frame

BytesToFrame converts bytes to block index.

func (Frame) Bytes

func (f Frame) Bytes() []byte

Bytes gets the byte representation of the index.

type Lamport

type Lamport uint32

Lamport numeration.

func BytesToLamport

func BytesToLamport(b []byte) Lamport

BytesToLamport converts bytes to block index.

func MaxLamport

func MaxLamport(x, y Lamport) Lamport

MaxLamport return max value

func (Lamport) Bytes

func (l Lamport) Bytes() []byte

Bytes gets the byte representation of the index.

type Pack

type Pack uint32

Pack numeration.

func BytesToPack

func BytesToPack(b []byte) Pack

BytesToPack converts bytes to block index.

func (Pack) Bytes

func (p Pack) Bytes() []byte

Bytes gets the byte representation of the index.

type Validator

type Validator uint32

Validator numeration.

func BytesToValidator

func BytesToValidator(b []byte) Validator

BytesToValidator converts bytes to validator index.

func (Validator) Bytes

func (v Validator) Bytes() []byte

Bytes gets the byte representation of the index.

type ValidatorID

type ValidatorID uint32

ValidatorID numeration.

func BytesToValidatorID

func BytesToValidatorID(b []byte) ValidatorID

BytesToValidatorID converts bytes to validator index.

func (ValidatorID) Bytes

func (s ValidatorID) Bytes() []byte

Bytes gets the byte representation of the index.

Jump to

Keyboard shortcuts

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