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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestArgs

type TestArgs struct {
	ID    did.DID     `cborgen:"id"`
	Link  cid.Cid     `cborgen:"link"`
	Str   string      `cborgen:"str"`
	Num   int64       `cborgen:"num"`
	Bytes []byte      `cborgen:"bytes"`
	Obj   TestObject  `cborgen:"obj"`
	Obj2  TestObject2 `cborgen:"obj2"`
	List  []string    `cborgen:"list"`
}

func (*TestArgs) MarshalCBOR

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

func (*TestArgs) UnmarshalCBOR

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

type TestObject

type TestObject struct {
	Bytes []byte `cborgen:"bytes"`
}

func (*TestObject) MarshalCBOR

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

func (*TestObject) UnmarshalCBOR

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

type TestObject2

type TestObject2 struct {
	Str   string `cborgen:"str"`
	Bytes []byte `cborgen:"bytes"`
}

func (*TestObject2) MarshalCBOR

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

func (*TestObject2) UnmarshalCBOR

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