testing

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Thingc = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type DeferredContainer

type DeferredContainer struct {
	Stuff    *SimpleTypeOne
	Deferred *cbg.Deferred
	Value    uint64
}

func (*DeferredContainer) MarshalCBOR

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

func (*DeferredContainer) UnmarshalCBOR

func (t *DeferredContainer) UnmarshalCBOR(r io.Reader) error

type FixedArrays

type FixedArrays struct {
	Bytes  [20]byte
	Uint8  [20]uint8
	Uint64 [20]uint64
}

func (*FixedArrays) MarshalCBOR

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

func (*FixedArrays) UnmarshalCBOR

func (t *FixedArrays) UnmarshalCBOR(r io.Reader) error

type NamedNumber

type NamedNumber uint64

type NamedString

type NamedString string

type NeedScratchForMap

type NeedScratchForMap struct {
	Thing bool
}

Do not add fields to this type.

func (*NeedScratchForMap) MarshalCBOR

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

func (*NeedScratchForMap) UnmarshalCBOR

func (t *NeedScratchForMap) UnmarshalCBOR(r io.Reader) error

type SignedArray

type SignedArray struct {
	Signed []uint64
}

func (*SignedArray) MarshalCBOR

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

func (*SignedArray) UnmarshalCBOR

func (t *SignedArray) UnmarshalCBOR(r io.Reader) error

type SimpleStructV1

type SimpleStructV1 struct {
	OldStr    string
	OldBytes  []byte
	OldNum    uint64
	OldPtr    *cid.Cid
	OldMap    map[string]SimpleTypeOne
	OldArray  []SimpleTypeOne
	OldStruct SimpleTypeOne
}

func (*SimpleStructV1) MarshalCBOR

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

func (*SimpleStructV1) UnmarshalCBOR

func (t *SimpleStructV1) UnmarshalCBOR(r io.Reader) error

type SimpleStructV2

type SimpleStructV2 struct {
	OldStr string
	NewStr string

	OldBytes []byte
	NewBytes []byte

	OldNum uint64
	NewNum uint64

	OldPtr *cid.Cid
	NewPtr *cid.Cid

	OldMap map[string]SimpleTypeOne
	NewMap map[string]SimpleTypeOne

	OldArray []SimpleTypeOne
	NewArray []SimpleTypeOne

	OldStruct SimpleTypeOne
	NewStruct SimpleTypeOne
}

func (*SimpleStructV2) MarshalCBOR

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

func (*SimpleStructV2) UnmarshalCBOR

func (t *SimpleStructV2) UnmarshalCBOR(r io.Reader) error

type SimpleTypeOne

type SimpleTypeOne struct {
	Foo     string
	Value   uint64
	Binary  []byte
	Signed  int64
	NString NamedString
}

func (*SimpleTypeOne) MarshalCBOR

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

func (*SimpleTypeOne) UnmarshalCBOR

func (t *SimpleTypeOne) UnmarshalCBOR(r io.Reader) error

type SimpleTypeTree

type SimpleTypeTree struct {
	Stuff                            *SimpleTypeTree
	Stufff                           *SimpleTypeTwo
	Others                           []uint64
	Test                             [][]byte
	Dog                              string
	SixtyThreeBitIntegerWithASignBit int64
	NotPizza                         *uint64
}

func (*SimpleTypeTree) MarshalCBOR

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

func (*SimpleTypeTree) UnmarshalCBOR

func (t *SimpleTypeTree) UnmarshalCBOR(r io.Reader) error

type SimpleTypeTwo

type SimpleTypeTwo struct {
	Stuff        *SimpleTypeTwo
	Others       []uint64
	SignedOthers []int64
	Test         [][]byte
	Dog          string
	Numbers      []NamedNumber
	Pizza        *uint64
	PointyPizza  *NamedNumber
	Arrrrrghay   [Thingc]SimpleTypeOne
}

func (*SimpleTypeTwo) MarshalCBOR

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

func (*SimpleTypeTwo) UnmarshalCBOR

func (t *SimpleTypeTwo) UnmarshalCBOR(r io.Reader) error

type ThingWithSomeTime

type ThingWithSomeTime struct {
	When    cbg.CborTime
	Stuff   int64
	CatName string
}

func (*ThingWithSomeTime) MarshalCBOR

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

func (*ThingWithSomeTime) UnmarshalCBOR

func (t *ThingWithSomeTime) UnmarshalCBOR(r io.Reader) error

Jump to

Keyboard shortcuts

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