datamodel

package
v0.0.0-...-935195a Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EqualsArgumentsModel

type EqualsArgumentsModel struct {
	Content multihash.Multihash `cborgen:"content" dagjsongen:"content"`
	Equals  cid.Cid             `cborgen:"equals" dagjsongen:"equals"`
}

func (*EqualsArgumentsModel) MarshalCBOR

func (t *EqualsArgumentsModel) MarshalCBOR(w io.Writer) error

func (*EqualsArgumentsModel) MarshalDagJSON

func (t *EqualsArgumentsModel) MarshalDagJSON(w io.Writer) error

func (*EqualsArgumentsModel) UnmarshalCBOR

func (t *EqualsArgumentsModel) UnmarshalCBOR(r io.Reader) (err error)

func (*EqualsArgumentsModel) UnmarshalDagJSON

func (t *EqualsArgumentsModel) UnmarshalDagJSON(r io.Reader) (err error)

type IndexArgumentsModel

type IndexArgumentsModel struct {
	Index cid.Cid `cborgen:"index" dagjsongen:"index"`
}

func (*IndexArgumentsModel) MarshalCBOR

func (t *IndexArgumentsModel) MarshalCBOR(w io.Writer) error

func (*IndexArgumentsModel) MarshalDagJSON

func (t *IndexArgumentsModel) MarshalDagJSON(w io.Writer) error

func (*IndexArgumentsModel) UnmarshalCBOR

func (t *IndexArgumentsModel) UnmarshalCBOR(r io.Reader) (err error)

func (*IndexArgumentsModel) UnmarshalDagJSON

func (t *IndexArgumentsModel) UnmarshalDagJSON(r io.Reader) (err error)

type LocationArgumentsModel

type LocationArgumentsModel struct {
	Space    did.DID                `cborgen:"space" dagjsongen:"space"`
	Content  multihash.Multihash    `cborgen:"content" dagjsongen:"content"`
	Location []capabilities.CborURL `cborgen:"location" dagjsongen:"location"`
	Range    *RangeModel            `cborgen:"range,omitempty" dagjsongen:"range,omitempty"`
}

func (*LocationArgumentsModel) MarshalCBOR

func (t *LocationArgumentsModel) MarshalCBOR(w io.Writer) error

func (*LocationArgumentsModel) MarshalDagJSON

func (t *LocationArgumentsModel) MarshalDagJSON(w io.Writer) error

func (*LocationArgumentsModel) UnmarshalCBOR

func (t *LocationArgumentsModel) UnmarshalCBOR(r io.Reader) (err error)

func (*LocationArgumentsModel) UnmarshalDagJSON

func (t *LocationArgumentsModel) UnmarshalDagJSON(r io.Reader) (err error)

type RangeModel

type RangeModel struct {
	Offset uint64  `cborgen:"offset" dagjsongen:"offset"`
	Length *uint64 `cborgen:"length,omitempty" dagjsongen:"length,omitempty"`
}

func (*RangeModel) MarshalCBOR

func (t *RangeModel) MarshalCBOR(w io.Writer) error

func (*RangeModel) MarshalDagJSON

func (t *RangeModel) MarshalDagJSON(w io.Writer) error

func (*RangeModel) UnmarshalCBOR

func (t *RangeModel) UnmarshalCBOR(r io.Reader) (err error)

func (*RangeModel) UnmarshalDagJSON

func (t *RangeModel) UnmarshalDagJSON(r io.Reader) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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