metadata

package
v0.4.21-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION string = "0.0.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	ChecksumsList [][32]byte

	StringsList []string

	ItemsList [][]uint32
	// contains filtered or unexported fields
}

func New

func New() *Metadata

func NewFromBytes

func NewFromBytes(serialized []byte) (*Metadata, error)

func (*Metadata) AddMetadata

func (md *Metadata) AddMetadata(key string, value [32]byte)

md

func (*Metadata) ListKeys

func (md *Metadata) ListKeys() []string

func (*Metadata) ListValues

func (md *Metadata) ListValues(mdKey string) [][32]byte

func (*Metadata) LookupKeyForValue

func (md *Metadata) LookupKeyForValue(value [32]byte) (string, bool)

func (*Metadata) Serialize

func (md *Metadata) Serialize() ([]byte, error)

Jump to

Keyboard shortcuts

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