datamodel

package
v0.0.0-...-8bebe15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResultModel

type ResultModel struct {
	Ok  *datamodel.Raw `cborgen:"ok,omitempty"`
	Err *datamodel.Raw `cborgen:"error,omitempty"`
}

ResultModel is the wire encoding of a UCAN [result.Result]: either an Ok or an Err branch, each holding a raw CBOR-encoded payload. Consumers decode the bytes into a typed cborgen struct that matches the schema expected for the receipt's command.

func (*ResultModel) MarshalCBOR

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

func (*ResultModel) MarshalDagJSON

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

func (*ResultModel) UnmarshalCBOR

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

func (*ResultModel) UnmarshalDagJSON

func (t *ResultModel) 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