content

package
v0.0.0-...-eb26d87 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Retrieve = binding.Bind[*RetrieveArguments, *RetrieveOK](command.MustParse("/content/retrieve"))

Functions

This section is empty.

Types

type Blob

type Blob struct {
	Digest multihash.Multihash `cborgen:"digest" dagjsongen:"digest"`
}

func (*Blob) MarshalCBOR

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

func (*Blob) MarshalDagJSON

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

func (*Blob) UnmarshalCBOR

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

func (*Blob) UnmarshalDagJSON

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

type Range

type Range struct {
	Start uint64 `cborgen:"start" dagjsongen:"start"`
	End   uint64 `cborgen:"end" dagjsongen:"end"`
}

func (*Range) MarshalCBOR

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

func (*Range) MarshalDagJSON

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

func (*Range) UnmarshalCBOR

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

func (*Range) UnmarshalDagJSON

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

type RetrieveArguments

type RetrieveArguments struct {
	Blob  Blob  `cborgen:"blob" dagjsongen:"blob"`
	Range Range `cborgen:"range" dagjsongen:"range"`
}

func (*RetrieveArguments) MarshalCBOR

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

func (*RetrieveArguments) MarshalDagJSON

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

func (*RetrieveArguments) UnmarshalCBOR

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

func (*RetrieveArguments) UnmarshalDagJSON

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

type RetrieveOK

type RetrieveOK = commands.Unit

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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