tests

package
v1.0.0-rc.10 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefTypes = []interface{}{
	(*IntDef)(nil),
	(*IntAr)(nil),
	(*IntSl)(nil),
	(*ByteAr)(nil),
	(*ByteSl)(nil),
	(*PrimitivesStructSl)(nil),
	(*PrimitivesStructDef)(nil),
}

Creates one much like amino.RegisterPackage, but without registration. This is needed due to circular dependency issues for dependencies of Amino. Another reason to strive for many independent modules. NOTE: Register new repr types here as well. NOTE: This package registration is independent of test registration. See tests/common.go StructTypes etc to add to tests.

Functions

func IsAminoMarshalerInt4ReprEmpty

func IsAminoMarshalerInt4ReprEmpty(goor ReprStruct4) (empty bool)

func IsAminoMarshalerInt5ReprEmpty

func IsAminoMarshalerInt5ReprEmpty(goor string) (empty bool)

func IsAminoMarshalerStruct1ReprEmpty

func IsAminoMarshalerStruct1ReprEmpty(goor ReprStruct1) (empty bool)

func IsAminoMarshalerStruct2ReprEmpty

func IsAminoMarshalerStruct2ReprEmpty(goor []ReprElem2) (empty bool)

func IsAminoMarshalerStruct3ReprEmpty

func IsAminoMarshalerStruct3ReprEmpty(goor int32) (empty bool)

func IsAminoMarshalerStruct6ReprEmpty

func IsAminoMarshalerStruct6ReprEmpty(goor []AminoMarshalerStruct1) (empty bool)

func IsAminoMarshalerStruct7ReprEmpty

func IsAminoMarshalerStruct7ReprEmpty(goor []ReprElem7) (empty bool)

func IsArraysArraysStructReprEmpty

func IsArraysArraysStructReprEmpty(goor ArraysArraysStruct) (empty bool)

func IsArraysStructReprEmpty

func IsArraysStructReprEmpty(goor ArraysStruct) (empty bool)

func IsByteArReprEmpty

func IsByteArReprEmpty(goor ByteAr) (empty bool)

func IsByteSlReprEmpty

func IsByteSlReprEmpty(goor ByteSl) (empty bool)

func IsComplexStReprEmpty

func IsComplexStReprEmpty(goor ComplexSt) (empty bool)

func IsConcrete1ReprEmpty

func IsConcrete1ReprEmpty(goor Concrete1) (empty bool)

func IsConcrete2ReprEmpty

func IsConcrete2ReprEmpty(goor Concrete2) (empty bool)

func IsConcreteTypeDefReprEmpty

func IsConcreteTypeDefReprEmpty(goor ConcreteTypeDef) (empty bool)

func IsConcreteWrappedBytesReprEmpty

func IsConcreteWrappedBytesReprEmpty(goor ConcreteWrappedBytes) (empty bool)

func IsEmbeddedSt1ReprEmpty

func IsEmbeddedSt1ReprEmpty(goor EmbeddedSt1) (empty bool)

func IsEmbeddedSt2ReprEmpty

func IsEmbeddedSt2ReprEmpty(goor EmbeddedSt2) (empty bool)

func IsEmbeddedSt3ReprEmpty

func IsEmbeddedSt3ReprEmpty(goor EmbeddedSt3) (empty bool)

func IsEmbeddedSt4ReprEmpty

func IsEmbeddedSt4ReprEmpty(goor EmbeddedSt4) (empty bool)

func IsEmbeddedSt5NameOverrideReprEmpty

func IsEmbeddedSt5NameOverrideReprEmpty(goor EmbeddedSt5) (empty bool)

func IsEmptyStructReprEmpty

func IsEmptyStructReprEmpty(goor EmptyStruct) (empty bool)

func IsIntArReprEmpty

func IsIntArReprEmpty(goor IntAr) (empty bool)

func IsIntDefReprEmpty

func IsIntDefReprEmpty(goor IntDef) (empty bool)

func IsIntSlReprEmpty

func IsIntSlReprEmpty(goor IntSl) (empty bool)

func IsInterfaceFieldsStructReprEmpty

func IsInterfaceFieldsStructReprEmpty(goor InterfaceFieldsStruct) (empty bool)

func IsPointerSlicesStructReprEmpty

func IsPointerSlicesStructReprEmpty(goor PointerSlicesStruct) (empty bool)

func IsPointersStructReprEmpty

func IsPointersStructReprEmpty(goor PointersStruct) (empty bool)

func IsPrimitivesStructArReprEmpty

func IsPrimitivesStructArReprEmpty(goor PrimitivesStructAr) (empty bool)

func IsPrimitivesStructDefReprEmpty

func IsPrimitivesStructDefReprEmpty(goor PrimitivesStructDef) (empty bool)

func IsPrimitivesStructReprEmpty

func IsPrimitivesStructReprEmpty(goor PrimitivesStruct) (empty bool)

func IsPrimitivesStructSlReprEmpty

func IsPrimitivesStructSlReprEmpty(goor PrimitivesStructSl) (empty bool)

func IsReprElem2ReprEmpty

func IsReprElem2ReprEmpty(goor ReprElem2) (empty bool)

func IsReprElem7ReprEmpty

func IsReprElem7ReprEmpty(goor uint8) (empty bool)

func IsReprStruct1ReprEmpty

func IsReprStruct1ReprEmpty(goor ReprStruct1) (empty bool)

func IsShortArraysStructReprEmpty

func IsShortArraysStructReprEmpty(goor ShortArraysStruct) (empty bool)

func IsSlicesSlicesStructReprEmpty

func IsSlicesSlicesStructReprEmpty(goor SlicesSlicesStruct) (empty bool)

func IsSlicesStructReprEmpty

func IsSlicesStructReprEmpty(goor SlicesStruct) (empty bool)

Types

type AminoMarshalerInt4

type AminoMarshalerInt4 int32

func (AminoMarshalerInt4) EmptyPBMessage

func (goo AminoMarshalerInt4) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*AminoMarshalerInt4) FromPBMessage

func (goo *AminoMarshalerInt4) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (AminoMarshalerInt4) GetTypeURL

func (_ AminoMarshalerInt4) GetTypeURL() (typeURL string)

func (AminoMarshalerInt4) MarshalAmino

func (ams AminoMarshalerInt4) MarshalAmino() (ReprStruct4, error)

func (AminoMarshalerInt4) ToPBMessage

func (goo AminoMarshalerInt4) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

func (*AminoMarshalerInt4) UnmarshalAmino

func (ams *AminoMarshalerInt4) UnmarshalAmino(rs ReprStruct4) error

type AminoMarshalerInt5

type AminoMarshalerInt5 int32

func (AminoMarshalerInt5) EmptyPBMessage

func (goo AminoMarshalerInt5) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*AminoMarshalerInt5) FromPBMessage

func (goo *AminoMarshalerInt5) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (AminoMarshalerInt5) GetTypeURL

func (_ AminoMarshalerInt5) GetTypeURL() (typeURL string)

func (AminoMarshalerInt5) MarshalAmino

func (ams AminoMarshalerInt5) MarshalAmino() (string, error)

func (AminoMarshalerInt5) ToPBMessage

func (goo AminoMarshalerInt5) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

func (*AminoMarshalerInt5) UnmarshalAmino

func (ams *AminoMarshalerInt5) UnmarshalAmino(repr string) error

type AminoMarshalerStruct1

type AminoMarshalerStruct1 struct {
	A int32
	B int32
}

func (AminoMarshalerStruct1) EmptyPBMessage

func (goo AminoMarshalerStruct1) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*AminoMarshalerStruct1) FromPBMessage

func (goo *AminoMarshalerStruct1) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (AminoMarshalerStruct1) GetTypeURL

func (_ AminoMarshalerStruct1) GetTypeURL() (typeURL string)

func (AminoMarshalerStruct1) MarshalAmino

func (ams AminoMarshalerStruct1) MarshalAmino() (ReprStruct1, error)

func (AminoMarshalerStruct1) ToPBMessage

func (goo AminoMarshalerStruct1) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

func (*AminoMarshalerStruct1) UnmarshalAmino

func (ams *AminoMarshalerStruct1) UnmarshalAmino(rs ReprStruct1) error

type AminoMarshalerStruct2

type AminoMarshalerStruct2 struct {
	B int32 // exposed (dontcare)
	// contains filtered or unexported fields
}

func (AminoMarshalerStruct2) EmptyPBMessage

func (goo AminoMarshalerStruct2) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*AminoMarshalerStruct2) FromPBMessage

func (goo *AminoMarshalerStruct2) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (AminoMarshalerStruct2) GetTypeURL

func (_ AminoMarshalerStruct2) GetTypeURL() (typeURL string)

func (AminoMarshalerStruct2) MarshalAmino

func (ams AminoMarshalerStruct2) MarshalAmino() ([]ReprElem2, error)

func (AminoMarshalerStruct2) ToPBMessage

func (goo AminoMarshalerStruct2) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

func (*AminoMarshalerStruct2) UnmarshalAmino

func (ams *AminoMarshalerStruct2) UnmarshalAmino(repr []ReprElem2) error

type AminoMarshalerStruct3

type AminoMarshalerStruct3 struct {
	A int32
}

func (AminoMarshalerStruct3) EmptyPBMessage

func (goo AminoMarshalerStruct3) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*AminoMarshalerStruct3) FromPBMessage

func (goo *AminoMarshalerStruct3) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (AminoMarshalerStruct3) GetTypeURL

func (_ AminoMarshalerStruct3) GetTypeURL() (typeURL string)

func (AminoMarshalerStruct3) MarshalAmino

func (ams AminoMarshalerStruct3) MarshalAmino() (int32, error)

func (AminoMarshalerStruct3) ToPBMessage

func (goo AminoMarshalerStruct3) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

func (*AminoMarshalerStruct3) UnmarshalAmino

func (ams *AminoMarshalerStruct3) UnmarshalAmino(i int32) error

type AminoMarshalerStruct6

type AminoMarshalerStruct6 struct {
	A int32
	B int32
}

func (AminoMarshalerStruct6) EmptyPBMessage

func (goo AminoMarshalerStruct6) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*AminoMarshalerStruct6) FromPBMessage

func (goo *AminoMarshalerStruct6) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (AminoMarshalerStruct6) GetTypeURL

func (_ AminoMarshalerStruct6) GetTypeURL() (typeURL string)

func (AminoMarshalerStruct6) MarshalAmino

func (ams AminoMarshalerStruct6) MarshalAmino() ([]AminoMarshalerStruct1, error)

func (AminoMarshalerStruct6) ToPBMessage

func (goo AminoMarshalerStruct6) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

func (*AminoMarshalerStruct6) UnmarshalAmino

func (ams *AminoMarshalerStruct6) UnmarshalAmino(repr []AminoMarshalerStruct1) error

type AminoMarshalerStruct7

type AminoMarshalerStruct7 struct {
	A int8
}

func (AminoMarshalerStruct7) EmptyPBMessage

func (goo AminoMarshalerStruct7) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*AminoMarshalerStruct7) FromPBMessage

func (goo *AminoMarshalerStruct7) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (AminoMarshalerStruct7) GetTypeURL

func (_ AminoMarshalerStruct7) GetTypeURL() (typeURL string)

func (AminoMarshalerStruct7) MarshalAmino

func (ams AminoMarshalerStruct7) MarshalAmino() ([]ReprElem7, error)

func (AminoMarshalerStruct7) ToPBMessage

func (goo AminoMarshalerStruct7) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

func (*AminoMarshalerStruct7) UnmarshalAmino

func (ams *AminoMarshalerStruct7) UnmarshalAmino(repr []ReprElem7) error

type ArraysArraysStruct

type ArraysArraysStruct struct {
	Int8ArAr        [2][2]int8
	Int16ArAr       [2][2]int16
	Int32ArAr       [2][2]int32
	Int32FixedArAr  [2][2]int32 `binary:"fixed32"`
	Int64ArAr       [2][2]int64
	Int64FixedArAr  [2][2]int64 `binary:"fixed64"`
	IntArAr         [2][2]int
	ByteArAr        [2][2]byte
	Uint8ArAr       [2][2]uint8
	Uint16ArAr      [2][2]uint16
	Uint32ArAr      [2][2]uint32
	Uint32FixedArAr [2][2]uint32 `binary:"fixed32"`
	Uint64ArAr      [2][2]uint64
	Uint64FixedArAr [2][2]uint64 `binary:"fixed64"`
	UintArAr        [2][2]uint
	StrArAr         [2][2]string
	BytesArAr       [2][2][]byte
	TimeArAr        [2][2]time.Time
	DurationArAr    [2][2]time.Duration
	EmptyArAr       [2][2]EmptyStruct
}

func (ArraysArraysStruct) EmptyPBMessage

func (goo ArraysArraysStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ArraysArraysStruct) FromPBMessage

func (goo *ArraysArraysStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ArraysArraysStruct) GetTypeURL

func (_ ArraysArraysStruct) GetTypeURL() (typeURL string)

func (ArraysArraysStruct) ToPBMessage

func (goo ArraysArraysStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ArraysStruct

type ArraysStruct struct {
	Int8Ar        [4]int8
	Int16Ar       [4]int16
	Int32Ar       [4]int32
	Int32FixedAr  [4]int32 `binary:"fixed32"`
	Int64Ar       [4]int64
	Int64FixedAr  [4]int64 `binary:"fixed64"`
	IntAr         [4]int
	ByteAr        [4]byte
	Uint8Ar       [4]uint8
	Uint16Ar      [4]uint16
	Uint32Ar      [4]uint32
	Uint32FixedAr [4]uint32 `binary:"fixed32"`
	Uint64Ar      [4]uint64
	Uint64FixedAr [4]uint64 `binary:"fixed64"`
	UintAr        [4]uint
	StrAr         [4]string
	BytesAr       [4][]byte
	TimeAr        [4]time.Time
	DurationAr    [4]time.Duration
	EmptyAr       [4]EmptyStruct
}

func (ArraysStruct) EmptyPBMessage

func (goo ArraysStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ArraysStruct) FromPBMessage

func (goo *ArraysStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ArraysStruct) GetTypeURL

func (_ ArraysStruct) GetTypeURL() (typeURL string)

func (ArraysStruct) ToPBMessage

func (goo ArraysStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ByteAr

type ByteAr [4]byte

This will be encoded as message SomeName { bytes val = 1; }

func (ByteAr) EmptyPBMessage

func (goo ByteAr) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ByteAr) FromPBMessage

func (goo *ByteAr) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ByteAr) GetTypeURL

func (_ ByteAr) GetTypeURL() (typeURL string)

func (ByteAr) ToPBMessage

func (goo ByteAr) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ByteSl

type ByteSl []byte

This will be encoded as message SomeName { bytes val = 1; }

func (ByteSl) EmptyPBMessage

func (goo ByteSl) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ByteSl) FromPBMessage

func (goo *ByteSl) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ByteSl) GetTypeURL

func (_ ByteSl) GetTypeURL() (typeURL string)

func (ByteSl) ToPBMessage

func (goo ByteSl) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ComplexSt

type ComplexSt struct {
	PrField PrimitivesStruct
	ArField ArraysStruct
	SlField SlicesStruct
	PtField PointersStruct
}

func (ComplexSt) EmptyPBMessage

func (goo ComplexSt) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ComplexSt) FromPBMessage

func (goo *ComplexSt) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ComplexSt) GetTypeURL

func (_ ComplexSt) GetTypeURL() (typeURL string)

func (ComplexSt) ToPBMessage

func (goo ComplexSt) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type Concrete1

type Concrete1 struct{}

func (Concrete1) AssertInterface1

func (Concrete1) AssertInterface1()

func (Concrete1) AssertInterface2

func (Concrete1) AssertInterface2()

func (Concrete1) EmptyPBMessage

func (goo Concrete1) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*Concrete1) FromPBMessage

func (goo *Concrete1) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (Concrete1) GetTypeURL

func (_ Concrete1) GetTypeURL() (typeURL string)

func (Concrete1) ToPBMessage

func (goo Concrete1) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type Concrete2

type Concrete2 struct{}

func (Concrete2) AssertInterface1

func (Concrete2) AssertInterface1()

func (Concrete2) AssertInterface2

func (Concrete2) AssertInterface2()

func (Concrete2) EmptyPBMessage

func (goo Concrete2) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*Concrete2) FromPBMessage

func (goo *Concrete2) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (Concrete2) GetTypeURL

func (_ Concrete2) GetTypeURL() (typeURL string)

func (Concrete2) ToPBMessage

func (goo Concrete2) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ConcreteTypeDef

type ConcreteTypeDef [4]byte

Special case: this concrete implementation (of Interface1) is a type definition.

func (ConcreteTypeDef) AssertInterface1

func (ConcreteTypeDef) AssertInterface1()

func (ConcreteTypeDef) EmptyPBMessage

func (goo ConcreteTypeDef) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ConcreteTypeDef) FromPBMessage

func (goo *ConcreteTypeDef) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ConcreteTypeDef) GetTypeURL

func (_ ConcreteTypeDef) GetTypeURL() (typeURL string)

func (ConcreteTypeDef) ToPBMessage

func (goo ConcreteTypeDef) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ConcreteWrappedBytes

type ConcreteWrappedBytes struct {
	Value []byte
}

Ideally, user's of amino should refrain from using the above but wrap actual values in structs; e.g. like:

func (ConcreteWrappedBytes) AssertInterface1

func (ConcreteWrappedBytes) AssertInterface1()

func (ConcreteWrappedBytes) EmptyPBMessage

func (goo ConcreteWrappedBytes) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ConcreteWrappedBytes) FromPBMessage

func (goo *ConcreteWrappedBytes) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ConcreteWrappedBytes) GetTypeURL

func (_ ConcreteWrappedBytes) GetTypeURL() (typeURL string)

func (ConcreteWrappedBytes) ToPBMessage

func (goo ConcreteWrappedBytes) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type EmbeddedSt1

type EmbeddedSt1 struct {
	PrimitivesStruct
}

func (EmbeddedSt1) EmptyPBMessage

func (goo EmbeddedSt1) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*EmbeddedSt1) FromPBMessage

func (goo *EmbeddedSt1) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (EmbeddedSt1) GetTypeURL

func (_ EmbeddedSt1) GetTypeURL() (typeURL string)

func (EmbeddedSt1) ToPBMessage

func (goo EmbeddedSt1) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type EmbeddedSt2

func (EmbeddedSt2) EmptyPBMessage

func (goo EmbeddedSt2) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*EmbeddedSt2) FromPBMessage

func (goo *EmbeddedSt2) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (EmbeddedSt2) GetTypeURL

func (_ EmbeddedSt2) GetTypeURL() (typeURL string)

func (EmbeddedSt2) ToPBMessage

func (goo EmbeddedSt2) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type EmbeddedSt3

func (EmbeddedSt3) EmptyPBMessage

func (goo EmbeddedSt3) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*EmbeddedSt3) FromPBMessage

func (goo *EmbeddedSt3) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (EmbeddedSt3) GetTypeURL

func (_ EmbeddedSt3) GetTypeURL() (typeURL string)

func (EmbeddedSt3) ToPBMessage

func (goo EmbeddedSt3) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type EmbeddedSt4

type EmbeddedSt4 struct {
	Foo1 int
	PrimitivesStruct
	Foo2              string
	ArraysStructField ArraysStruct
	Foo3              []byte
	SlicesStruct
	Foo4                bool
	PointersStructField PointersStruct
	Foo5                uint
}

func (EmbeddedSt4) EmptyPBMessage

func (goo EmbeddedSt4) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*EmbeddedSt4) FromPBMessage

func (goo *EmbeddedSt4) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (EmbeddedSt4) GetTypeURL

func (_ EmbeddedSt4) GetTypeURL() (typeURL string)

func (EmbeddedSt4) ToPBMessage

func (goo EmbeddedSt4) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type EmbeddedSt5

type EmbeddedSt5 struct {
	Foo1 int
	*PrimitivesStruct
	Foo2              string
	ArraysStructField *ArraysStruct
	Foo3              []byte
	*SlicesStruct
	Foo4                bool
	PointersStructField *PointersStruct
	Foo5                uint
}

func (EmbeddedSt5) EmptyPBMessage

func (goo EmbeddedSt5) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*EmbeddedSt5) FromPBMessage

func (goo *EmbeddedSt5) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (EmbeddedSt5) GetTypeURL

func (_ EmbeddedSt5) GetTypeURL() (typeURL string)

func (EmbeddedSt5) ToPBMessage

func (goo EmbeddedSt5) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type EmptyStruct

type EmptyStruct struct {
}

func (EmptyStruct) EmptyPBMessage

func (goo EmptyStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*EmptyStruct) FromPBMessage

func (goo *EmptyStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (EmptyStruct) GetTypeURL

func (_ EmptyStruct) GetTypeURL() (typeURL string)

func (EmptyStruct) ToPBMessage

func (goo EmptyStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type IntAr

type IntAr [4]int

This will be encoded as message SomeName { repeated int val = 1; }

func (IntAr) EmptyPBMessage

func (goo IntAr) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*IntAr) FromPBMessage

func (goo *IntAr) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (IntAr) GetTypeURL

func (_ IntAr) GetTypeURL() (typeURL string)

func (IntAr) ToPBMessage

func (goo IntAr) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type IntDef

type IntDef int

This will be encoded as message SomeName { int64 val = 1; }

func (IntDef) EmptyPBMessage

func (goo IntDef) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*IntDef) FromPBMessage

func (goo *IntDef) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (IntDef) GetTypeURL

func (_ IntDef) GetTypeURL() (typeURL string)

func (IntDef) ToPBMessage

func (goo IntDef) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type IntSl

type IntSl []int

This will be encoded as message SomeName { repeated int val = 1; }

func (IntSl) EmptyPBMessage

func (goo IntSl) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*IntSl) FromPBMessage

func (goo *IntSl) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (IntSl) GetTypeURL

func (_ IntSl) GetTypeURL() (typeURL string)

func (IntSl) ToPBMessage

func (goo IntSl) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type Interface1

type Interface1 interface {
	AssertInterface1()
}

type Interface2

type Interface2 interface {
	AssertInterface2()
}

type InterfaceFieldsStruct

type InterfaceFieldsStruct struct {
	F1 Interface1
	F2 Interface1
	F3 interface{}
	F4 interface{}
}

Yet another special case: Field could be a type alias (should not be wrapped).

func (*InterfaceFieldsStruct) AssertInterface1

func (*InterfaceFieldsStruct) AssertInterface1()

func (InterfaceFieldsStruct) EmptyPBMessage

func (goo InterfaceFieldsStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*InterfaceFieldsStruct) FromPBMessage

func (goo *InterfaceFieldsStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (InterfaceFieldsStruct) GetTypeURL

func (_ InterfaceFieldsStruct) GetTypeURL() (typeURL string)

func (InterfaceFieldsStruct) ToPBMessage

func (goo InterfaceFieldsStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type PointerSlicesStruct

type PointerSlicesStruct struct {
	Int8PtSl        []*int8
	Int16PtSl       []*int16
	Int32PtSl       []*int32
	Int32FixedPtSl  []*int32 `binary:"fixed32"`
	Int64PtSl       []*int64
	Int64FixedPtSl  []*int64 `binary:"fixed64"`
	IntPtSl         []*int
	BytePtSl        []*byte
	Uint8PtSl       []*uint8
	Uint16PtSl      []*uint16
	Uint32PtSl      []*uint32
	Uint32FixedPtSl []*uint32 `binary:"fixed32"`
	Uint64PtSl      []*uint64
	Uint64FixedPtSl []*uint64 `binary:"fixed64"`
	UintPtSl        []*uint
	StrPtSl         []*string
	BytesPtSl       []*[]byte
	TimePtSl        []*time.Time
	DurationPtSl    []*time.Duration
	EmptyPtSl       []*EmptyStruct
}

func (PointerSlicesStruct) EmptyPBMessage

func (goo PointerSlicesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*PointerSlicesStruct) FromPBMessage

func (goo *PointerSlicesStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (PointerSlicesStruct) GetTypeURL

func (_ PointerSlicesStruct) GetTypeURL() (typeURL string)

func (PointerSlicesStruct) ToPBMessage

func (goo PointerSlicesStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type PointersStruct

type PointersStruct struct {
	Int8Pt        *int8
	Int16Pt       *int16
	Int32Pt       *int32
	Int32FixedPt  *int32 `binary:"fixed32"`
	Int64Pt       *int64
	Int64FixedPt  *int64 `binary:"fixed64"`
	IntPt         *int
	BytePt        *byte
	Uint8Pt       *uint8
	Uint16Pt      *uint16
	Uint32Pt      *uint32
	Uint32FixedPt *uint32 `binary:"fixed32"`
	Uint64Pt      *uint64
	Uint64FixedPt *uint64 `binary:"fixed64"`
	UintPt        *uint
	StrPt         *string
	BytesPt       *[]byte
	TimePt        *time.Time
	DurationPt    *time.Duration
	EmptyPt       *EmptyStruct
}

func (PointersStruct) EmptyPBMessage

func (goo PointersStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*PointersStruct) FromPBMessage

func (goo *PointersStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (PointersStruct) GetTypeURL

func (_ PointersStruct) GetTypeURL() (typeURL string)

func (PointersStruct) ToPBMessage

func (goo PointersStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type PrimitivesStruct

type PrimitivesStruct struct {
	Int8        int8
	Int16       int16
	Int32       int32
	Int32Fixed  int32 `binary:"fixed32"`
	Int64       int64
	Int64Fixed  int64 `binary:"fixed64"`
	Int         int
	Byte        byte
	Uint8       uint8
	Uint16      uint16
	Uint32      uint32
	Uint32Fixed uint32 `binary:"fixed32"`
	Uint64      uint64
	Uint64Fixed uint64 `binary:"fixed64"`
	Uint        uint
	Str         string
	Bytes       []byte
	Time        time.Time
	Duration    time.Duration
	Empty       EmptyStruct
	// contains filtered or unexported fields
}

func (PrimitivesStruct) EmptyPBMessage

func (goo PrimitivesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*PrimitivesStruct) FromPBMessage

func (goo *PrimitivesStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (PrimitivesStruct) GetTypeURL

func (_ PrimitivesStruct) GetTypeURL() (typeURL string)

func (PrimitivesStruct) ToPBMessage

func (goo PrimitivesStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type PrimitivesStructAr

type PrimitivesStructAr [2]PrimitivesStruct

This will be encoded as message SomeName { repeated PrimitivesStruct val = 1; }

func (PrimitivesStructAr) EmptyPBMessage

func (goo PrimitivesStructAr) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*PrimitivesStructAr) FromPBMessage

func (goo *PrimitivesStructAr) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (PrimitivesStructAr) GetTypeURL

func (_ PrimitivesStructAr) GetTypeURL() (typeURL string)

func (PrimitivesStructAr) ToPBMessage

func (goo PrimitivesStructAr) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type PrimitivesStructDef

type PrimitivesStructDef PrimitivesStruct

func (PrimitivesStructDef) EmptyPBMessage

func (goo PrimitivesStructDef) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*PrimitivesStructDef) FromPBMessage

func (goo *PrimitivesStructDef) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (PrimitivesStructDef) GetTypeURL

func (_ PrimitivesStructDef) GetTypeURL() (typeURL string)

func (PrimitivesStructDef) ToPBMessage

func (goo PrimitivesStructDef) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type PrimitivesStructSl

type PrimitivesStructSl []PrimitivesStruct

This will be encoded as message SomeName { repeated PrimitivesStruct val = 1; }

func (PrimitivesStructSl) EmptyPBMessage

func (goo PrimitivesStructSl) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*PrimitivesStructSl) FromPBMessage

func (goo *PrimitivesStructSl) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (PrimitivesStructSl) GetTypeURL

func (_ PrimitivesStructSl) GetTypeURL() (typeURL string)

func (PrimitivesStructSl) ToPBMessage

func (goo PrimitivesStructSl) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ReprElem2

type ReprElem2 struct {
	Key   string
	Value interface{}
}

func (ReprElem2) EmptyPBMessage

func (goo ReprElem2) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ReprElem2) FromPBMessage

func (goo *ReprElem2) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ReprElem2) GetTypeURL

func (_ ReprElem2) GetTypeURL() (typeURL string)

func (ReprElem2) ToPBMessage

func (goo ReprElem2) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ReprElem7

type ReprElem7 struct {
	A int8
}

func (ReprElem7) EmptyPBMessage

func (goo ReprElem7) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ReprElem7) FromPBMessage

func (goo *ReprElem7) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ReprElem7) GetTypeURL

func (_ ReprElem7) GetTypeURL() (typeURL string)

func (ReprElem7) MarshalAmino

func (re ReprElem7) MarshalAmino() (uint8, error)

func (ReprElem7) ToPBMessage

func (goo ReprElem7) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

func (*ReprElem7) UnmarshalAmino

func (re *ReprElem7) UnmarshalAmino(u uint8) error

type ReprStruct1

type ReprStruct1 struct {
	C int64
	D int64
}

func (ReprStruct1) EmptyPBMessage

func (goo ReprStruct1) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ReprStruct1) FromPBMessage

func (goo *ReprStruct1) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ReprStruct1) GetTypeURL

func (_ ReprStruct1) GetTypeURL() (typeURL string)

func (ReprStruct1) ToPBMessage

func (goo ReprStruct1) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type ReprStruct4

type ReprStruct4 struct {
	A int32
}

type ShortArraysStruct

type ShortArraysStruct struct {
	TimeAr     [0]time.Time
	DurationAr [0]time.Duration
}

func (ShortArraysStruct) EmptyPBMessage

func (goo ShortArraysStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*ShortArraysStruct) FromPBMessage

func (goo *ShortArraysStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (ShortArraysStruct) GetTypeURL

func (_ ShortArraysStruct) GetTypeURL() (typeURL string)

func (ShortArraysStruct) ToPBMessage

func (goo ShortArraysStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type SlicesSlicesStruct

type SlicesSlicesStruct struct {
	Int8SlSl        [][]int8
	Int16SlSl       [][]int16
	Int32SlSl       [][]int32
	Int32FixedSlSl  [][]int32 `binary:"fixed32"`
	Int64SlSl       [][]int64
	Int64FixedSlSl  [][]int64 `binary:"fixed64"`
	IntSlSl         [][]int
	ByteSlSl        [][]byte
	Uint8SlSl       [][]uint8
	Uint16SlSl      [][]uint16
	Uint32SlSl      [][]uint32
	Uint32FixedSlSl [][]uint32 `binary:"fixed32"`
	Uint64SlSl      [][]uint64
	Uint64FixedSlSl [][]uint64 `binary:"fixed64"`
	UintSlSl        [][]uint
	StrSlSl         [][]string
	BytesSlSl       [][][]byte
	TimeSlSl        [][]time.Time
	DurationSlSl    [][]time.Duration
	EmptySlSl       [][]EmptyStruct
}

func (SlicesSlicesStruct) EmptyPBMessage

func (goo SlicesSlicesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*SlicesSlicesStruct) FromPBMessage

func (goo *SlicesSlicesStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (SlicesSlicesStruct) GetTypeURL

func (_ SlicesSlicesStruct) GetTypeURL() (typeURL string)

func (SlicesSlicesStruct) ToPBMessage

func (goo SlicesSlicesStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

type SlicesStruct

type SlicesStruct struct {
	Int8Sl        []int8
	Int16Sl       []int16
	Int32Sl       []int32
	Int32FixedSl  []int32 `binary:"fixed32"`
	Int64Sl       []int64
	Int64FixedSl  []int64 `binary:"fixed64"`
	IntSl         []int
	ByteSl        []byte
	Uint8Sl       []uint8
	Uint16Sl      []uint16
	Uint32Sl      []uint32
	Uint32FixedSl []uint32 `binary:"fixed32"`
	Uint64Sl      []uint64
	Uint64FixedSl []uint64 `binary:"fixed64"`
	UintSl        []uint
	StrSl         []string
	BytesSl       [][]byte
	TimeSl        []time.Time
	DurationSl    []time.Duration
	EmptySl       []EmptyStruct
}

func (SlicesStruct) EmptyPBMessage

func (goo SlicesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)

func (*SlicesStruct) FromPBMessage

func (goo *SlicesStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)

func (SlicesStruct) GetTypeURL

func (_ SlicesStruct) GetTypeURL() (typeURL string)

func (SlicesStruct) ToPBMessage

func (goo SlicesStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)

Directories

Path Synopsis
fuzz
proto3

Jump to

Keyboard shortcuts

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