iplddecoders

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAny

func DecodeAny(anyRaw []byte) (any, error)

func DecodeBlock

func DecodeBlock(blockRaw []byte) (*ipldbindcode.Block, error)

func DecodeDataFrame

func DecodeDataFrame(dataFrameRaw []byte) (*ipldbindcode.DataFrame, error)

func DecodeEntry

func DecodeEntry(entryRaw []byte) (*ipldbindcode.Entry, error)

func DecodeEpoch

func DecodeEpoch(epochRaw []byte) (*ipldbindcode.Epoch, error)

func DecodeRewards

func DecodeRewards(rewardsRaw []byte) (*ipldbindcode.Rewards, error)

func DecodeSubset

func DecodeSubset(subsetRaw []byte) (*ipldbindcode.Subset, error)

func DecodeTransaction

func DecodeTransaction(transactionRaw []byte) (*ipldbindcode.Transaction, error)

Types

type Kind

type Kind int
const (
	KindTransaction Kind = iota
	KindEntry
	KindBlock
	KindSubset
	KindEpoch
	KindRewards
	KindDataFrame
)

func GetKind

func GetKind(anyRaw []byte) (Kind, error)

func (Kind) String

func (k Kind) String() string

String returns the string representation of the Kind.

type KindSlice

type KindSlice []Kind

func (KindSlice) Has

func (ks KindSlice) Has(k Kind) bool

func (KindSlice) HasAny

func (ks KindSlice) HasAny(kinds ...Kind) bool

Jump to

Keyboard shortcuts

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