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)
Click to show internal directories.
Click to hide internal directories.