Documentation ¶
Index ¶
- Variables
- type AminoMarshalerInt4
- func (goo AminoMarshalerInt4) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *AminoMarshalerInt4) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ AminoMarshalerInt4) GetTypeURL() (typeURL string)
- func (ams AminoMarshalerInt4) MarshalAmino() (ReprStruct4, error)
- func (goo AminoMarshalerInt4) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- func (ams *AminoMarshalerInt4) UnmarshalAmino(rs ReprStruct4) error
- type AminoMarshalerInt5
- func (goo AminoMarshalerInt5) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *AminoMarshalerInt5) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ AminoMarshalerInt5) GetTypeURL() (typeURL string)
- func (ams AminoMarshalerInt5) MarshalAmino() (string, error)
- func (goo AminoMarshalerInt5) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- func (ams *AminoMarshalerInt5) UnmarshalAmino(repr string) error
- type AminoMarshalerStruct1
- func (goo AminoMarshalerStruct1) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *AminoMarshalerStruct1) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ AminoMarshalerStruct1) GetTypeURL() (typeURL string)
- func (ams AminoMarshalerStruct1) MarshalAmino() (ReprStruct1, error)
- func (goo AminoMarshalerStruct1) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- func (ams *AminoMarshalerStruct1) UnmarshalAmino(rs ReprStruct1) error
- type AminoMarshalerStruct2
- func (goo AminoMarshalerStruct2) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *AminoMarshalerStruct2) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ AminoMarshalerStruct2) GetTypeURL() (typeURL string)
- func (ams AminoMarshalerStruct2) MarshalAmino() ([]ReprElem2, error)
- func (goo AminoMarshalerStruct2) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- func (ams *AminoMarshalerStruct2) UnmarshalAmino(repr []ReprElem2) error
- type AminoMarshalerStruct3
- func (goo AminoMarshalerStruct3) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *AminoMarshalerStruct3) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ AminoMarshalerStruct3) GetTypeURL() (typeURL string)
- func (ams AminoMarshalerStruct3) MarshalAmino() (int32, error)
- func (goo AminoMarshalerStruct3) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- func (ams *AminoMarshalerStruct3) UnmarshalAmino(i int32) error
- type AminoMarshalerStruct6
- func (goo AminoMarshalerStruct6) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *AminoMarshalerStruct6) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ AminoMarshalerStruct6) GetTypeURL() (typeURL string)
- func (ams AminoMarshalerStruct6) MarshalAmino() ([]AminoMarshalerStruct1, error)
- func (goo AminoMarshalerStruct6) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- func (ams *AminoMarshalerStruct6) UnmarshalAmino(repr []AminoMarshalerStruct1) error
- type AminoMarshalerStruct7
- func (goo AminoMarshalerStruct7) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *AminoMarshalerStruct7) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ AminoMarshalerStruct7) GetTypeURL() (typeURL string)
- func (ams AminoMarshalerStruct7) MarshalAmino() ([]ReprElem7, error)
- func (goo AminoMarshalerStruct7) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- func (ams *AminoMarshalerStruct7) UnmarshalAmino(repr []ReprElem7) error
- type ArraysArraysStruct
- func (goo ArraysArraysStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ArraysArraysStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ArraysArraysStruct) GetTypeURL() (typeURL string)
- func (goo ArraysArraysStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ArraysStruct
- func (goo ArraysStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ArraysStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ArraysStruct) GetTypeURL() (typeURL string)
- func (goo ArraysStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ByteAr
- type ByteSl
- type ComplexSt
- type Concrete1
- func (Concrete1) AssertInterface1()
- func (Concrete1) AssertInterface2()
- func (goo Concrete1) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *Concrete1) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ Concrete1) GetTypeURL() (typeURL string)
- func (goo Concrete1) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type Concrete2
- func (Concrete2) AssertInterface1()
- func (Concrete2) AssertInterface2()
- func (goo Concrete2) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *Concrete2) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ Concrete2) GetTypeURL() (typeURL string)
- func (goo Concrete2) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ConcreteTypeDef
- func (ConcreteTypeDef) AssertInterface1()
- func (goo ConcreteTypeDef) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ConcreteTypeDef) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ConcreteTypeDef) GetTypeURL() (typeURL string)
- func (goo ConcreteTypeDef) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ConcreteWrappedBytes
- func (ConcreteWrappedBytes) AssertInterface1()
- func (goo ConcreteWrappedBytes) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ConcreteWrappedBytes) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ConcreteWrappedBytes) GetTypeURL() (typeURL string)
- func (goo ConcreteWrappedBytes) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type EmbeddedSt1
- type EmbeddedSt2
- type EmbeddedSt3
- type EmbeddedSt4
- type EmbeddedSt5
- type EmptyStruct
- type IntAr
- type IntDef
- type IntSl
- type Interface1
- type Interface2
- type InterfaceFieldsStruct
- func (*InterfaceFieldsStruct) AssertInterface1()
- func (goo InterfaceFieldsStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *InterfaceFieldsStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ InterfaceFieldsStruct) GetTypeURL() (typeURL string)
- func (goo InterfaceFieldsStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type PointerSlicesStruct
- func (goo PointerSlicesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *PointerSlicesStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ PointerSlicesStruct) GetTypeURL() (typeURL string)
- func (goo PointerSlicesStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type PointersStruct
- func (goo PointersStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *PointersStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ PointersStruct) GetTypeURL() (typeURL string)
- func (goo PointersStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type PrimitivesStruct
- func (goo PrimitivesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *PrimitivesStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ PrimitivesStruct) GetTypeURL() (typeURL string)
- func (goo PrimitivesStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type PrimitivesStructAr
- func (goo PrimitivesStructAr) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *PrimitivesStructAr) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ PrimitivesStructAr) GetTypeURL() (typeURL string)
- func (goo PrimitivesStructAr) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type PrimitivesStructDef
- func (goo PrimitivesStructDef) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *PrimitivesStructDef) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ PrimitivesStructDef) GetTypeURL() (typeURL string)
- func (goo PrimitivesStructDef) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type PrimitivesStructSl
- func (goo PrimitivesStructSl) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *PrimitivesStructSl) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ PrimitivesStructSl) GetTypeURL() (typeURL string)
- func (goo PrimitivesStructSl) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type ReprElem2
- type ReprElem7
- func (goo ReprElem7) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ReprElem7) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ReprElem7) GetTypeURL() (typeURL string)
- func (re ReprElem7) MarshalAmino() (uint8, error)
- func (goo ReprElem7) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- func (re *ReprElem7) UnmarshalAmino(u uint8) error
- type ReprStruct1
- type ReprStruct4
- type ShortArraysStruct
- func (goo ShortArraysStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *ShortArraysStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ ShortArraysStruct) GetTypeURL() (typeURL string)
- func (goo ShortArraysStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type SlicesSlicesStruct
- func (goo SlicesSlicesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *SlicesSlicesStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ SlicesSlicesStruct) GetTypeURL() (typeURL string)
- func (goo SlicesSlicesStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
- type SlicesStruct
- func (goo SlicesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
- func (goo *SlicesStruct) FromPBMessage(cdc *amino.Codec, msg proto.Message) (err error)
- func (_ SlicesStruct) GetTypeURL() (typeURL string)
- func (goo SlicesStruct) ToPBMessage(cdc *amino.Codec) (msg proto.Message, err error)
Constants ¶
This section is empty.
Variables ¶
var DefTypes = []interface{}{ (*IntDef)(nil), (*IntAr)(nil), (*IntSl)(nil), (*ByteAr)(nil), (*ByteSl)(nil), (*PrimitivesStructSl)(nil), (*PrimitivesStructDef)(nil), }
var Package = pkg.NewPackage( "github.com/tendermint/go-amino-x/tests", "tests", pkg.GetCallersDirname(), ).WithDependencies().WithTypes( EmptyStruct{}, PrimitivesStruct{}, ShortArraysStruct{}, ArraysStruct{}, ArraysArraysStruct{}, SlicesStruct{}, SlicesSlicesStruct{}, PointersStruct{}, PointerSlicesStruct{}, ComplexSt{}, EmbeddedSt1{}, EmbeddedSt2{}, EmbeddedSt3{}, EmbeddedSt4{}, pkg.Type{ Type: reflect.TypeOf(EmbeddedSt5{}), Name: "EmbeddedSt5NameOverride", PointerPreferred: false, }, AminoMarshalerStruct1{}, ReprStruct1{}, AminoMarshalerStruct2{}, ReprElem2{}, AminoMarshalerStruct3{}, AminoMarshalerInt4(0), AminoMarshalerInt5(0), AminoMarshalerStruct6{}, AminoMarshalerStruct7{}, ReprElem7{}, IntDef(0), IntAr{}, IntSl(nil), ByteAr{}, ByteSl(nil), PrimitivesStructDef{}, PrimitivesStructSl(nil), PrimitivesStructAr{}, Concrete1{}, Concrete2{}, ConcreteTypeDef{}, ConcreteWrappedBytes{}, &InterfaceFieldsStruct{}, )
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.
var StructTypes = []interface{}{ (*EmptyStruct)(nil), (*PrimitivesStruct)(nil), (*ShortArraysStruct)(nil), (*ArraysStruct)(nil), (*ArraysArraysStruct)(nil), (*SlicesStruct)(nil), (*SlicesSlicesStruct)(nil), (*PointersStruct)(nil), (*PointerSlicesStruct)(nil), (*ComplexSt)(nil), (*EmbeddedSt1)(nil), (*EmbeddedSt2)(nil), (*EmbeddedSt3)(nil), (*EmbeddedSt4)(nil), (*EmbeddedSt5)(nil), (*AminoMarshalerStruct1)(nil), (*AminoMarshalerStruct2)(nil), (*AminoMarshalerStruct3)(nil), (*AminoMarshalerInt4)(nil), (*AminoMarshalerInt5)(nil), (*AminoMarshalerStruct6)(nil), (*AminoMarshalerStruct7)(nil), }
Functions ¶
This section is empty.
Types ¶
type AminoMarshalerInt4 ¶
type AminoMarshalerInt4 int32
func (AminoMarshalerInt4) EmptyPBMessage ¶
func (goo AminoMarshalerInt4) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*AminoMarshalerInt4) FromPBMessage ¶
func (AminoMarshalerInt4) GetTypeURL ¶
func (_ AminoMarshalerInt4) GetTypeURL() (typeURL string)
func (AminoMarshalerInt4) MarshalAmino ¶
func (ams AminoMarshalerInt4) MarshalAmino() (ReprStruct4, error)
func (AminoMarshalerInt4) ToPBMessage ¶
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 (AminoMarshalerInt5) GetTypeURL ¶
func (_ AminoMarshalerInt5) GetTypeURL() (typeURL string)
func (AminoMarshalerInt5) MarshalAmino ¶
func (ams AminoMarshalerInt5) MarshalAmino() (string, error)
func (AminoMarshalerInt5) ToPBMessage ¶
func (*AminoMarshalerInt5) UnmarshalAmino ¶
func (ams *AminoMarshalerInt5) UnmarshalAmino(repr string) error
type AminoMarshalerStruct1 ¶
func (AminoMarshalerStruct1) EmptyPBMessage ¶
func (goo AminoMarshalerStruct1) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*AminoMarshalerStruct1) FromPBMessage ¶
func (AminoMarshalerStruct1) GetTypeURL ¶
func (_ AminoMarshalerStruct1) GetTypeURL() (typeURL string)
func (AminoMarshalerStruct1) MarshalAmino ¶
func (ams AminoMarshalerStruct1) MarshalAmino() (ReprStruct1, error)
func (AminoMarshalerStruct1) ToPBMessage ¶
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 (AminoMarshalerStruct2) GetTypeURL ¶
func (_ AminoMarshalerStruct2) GetTypeURL() (typeURL string)
func (AminoMarshalerStruct2) MarshalAmino ¶
func (ams AminoMarshalerStruct2) MarshalAmino() ([]ReprElem2, error)
func (AminoMarshalerStruct2) ToPBMessage ¶
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 (AminoMarshalerStruct3) GetTypeURL ¶
func (_ AminoMarshalerStruct3) GetTypeURL() (typeURL string)
func (AminoMarshalerStruct3) MarshalAmino ¶
func (ams AminoMarshalerStruct3) MarshalAmino() (int32, error)
func (AminoMarshalerStruct3) ToPBMessage ¶
func (*AminoMarshalerStruct3) UnmarshalAmino ¶
func (ams *AminoMarshalerStruct3) UnmarshalAmino(i int32) error
type AminoMarshalerStruct6 ¶
func (AminoMarshalerStruct6) EmptyPBMessage ¶
func (goo AminoMarshalerStruct6) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*AminoMarshalerStruct6) FromPBMessage ¶
func (AminoMarshalerStruct6) GetTypeURL ¶
func (_ AminoMarshalerStruct6) GetTypeURL() (typeURL string)
func (AminoMarshalerStruct6) MarshalAmino ¶
func (ams AminoMarshalerStruct6) MarshalAmino() ([]AminoMarshalerStruct1, error)
func (AminoMarshalerStruct6) ToPBMessage ¶
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 (AminoMarshalerStruct7) GetTypeURL ¶
func (_ AminoMarshalerStruct7) GetTypeURL() (typeURL string)
func (AminoMarshalerStruct7) MarshalAmino ¶
func (ams AminoMarshalerStruct7) MarshalAmino() ([]ReprElem7, error)
func (AminoMarshalerStruct7) ToPBMessage ¶
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 EmptyArAr [2][2]EmptyStruct }
func (ArraysArraysStruct) EmptyPBMessage ¶
func (goo ArraysArraysStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ArraysArraysStruct) FromPBMessage ¶
func (ArraysArraysStruct) GetTypeURL ¶
func (_ ArraysArraysStruct) GetTypeURL() (typeURL string)
func (ArraysArraysStruct) ToPBMessage ¶
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 EmptyAr [4]EmptyStruct }
func (ArraysStruct) EmptyPBMessage ¶
func (goo ArraysStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ArraysStruct) FromPBMessage ¶
func (ArraysStruct) GetTypeURL ¶
func (_ ArraysStruct) GetTypeURL() (typeURL string)
func (ArraysStruct) ToPBMessage ¶
type ByteAr ¶
type ByteAr [4]byte
This will be encoded as message SomeName { bytes val = 1; }
func (ByteAr) EmptyPBMessage ¶
func (*ByteAr) FromPBMessage ¶
func (ByteAr) GetTypeURL ¶
type ByteSl ¶
type ByteSl []byte
This will be encoded as message SomeName { bytes val = 1; }
func (ByteSl) EmptyPBMessage ¶
func (*ByteSl) FromPBMessage ¶
func (ByteSl) GetTypeURL ¶
type ComplexSt ¶
type ComplexSt struct { PrField PrimitivesStruct ArField ArraysStruct SlField SlicesStruct PtField PointersStruct }
func (ComplexSt) EmptyPBMessage ¶
func (*ComplexSt) FromPBMessage ¶
func (ComplexSt) GetTypeURL ¶
type Concrete1 ¶
type Concrete1 struct{}
func (Concrete1) AssertInterface1 ¶
func (Concrete1) AssertInterface1()
func (Concrete1) AssertInterface2 ¶
func (Concrete1) AssertInterface2()
func (Concrete1) EmptyPBMessage ¶
func (*Concrete1) FromPBMessage ¶
func (Concrete1) GetTypeURL ¶
type Concrete2 ¶
type Concrete2 struct{}
func (Concrete2) AssertInterface1 ¶
func (Concrete2) AssertInterface1()
func (Concrete2) AssertInterface2 ¶
func (Concrete2) AssertInterface2()
func (Concrete2) EmptyPBMessage ¶
func (*Concrete2) FromPBMessage ¶
func (Concrete2) GetTypeURL ¶
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 (ConcreteTypeDef) GetTypeURL ¶
func (_ ConcreteTypeDef) GetTypeURL() (typeURL string)
func (ConcreteTypeDef) ToPBMessage ¶
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 (ConcreteWrappedBytes) GetTypeURL ¶
func (_ ConcreteWrappedBytes) GetTypeURL() (typeURL string)
func (ConcreteWrappedBytes) ToPBMessage ¶
type EmbeddedSt1 ¶
type EmbeddedSt1 struct {
PrimitivesStruct
}
func (EmbeddedSt1) EmptyPBMessage ¶
func (goo EmbeddedSt1) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*EmbeddedSt1) FromPBMessage ¶
func (EmbeddedSt1) GetTypeURL ¶
func (_ EmbeddedSt1) GetTypeURL() (typeURL string)
func (EmbeddedSt1) ToPBMessage ¶
type EmbeddedSt2 ¶
type EmbeddedSt2 struct { PrimitivesStruct ArraysStruct SlicesStruct PointersStruct }
func (EmbeddedSt2) EmptyPBMessage ¶
func (goo EmbeddedSt2) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*EmbeddedSt2) FromPBMessage ¶
func (EmbeddedSt2) GetTypeURL ¶
func (_ EmbeddedSt2) GetTypeURL() (typeURL string)
func (EmbeddedSt2) ToPBMessage ¶
type EmbeddedSt3 ¶
type EmbeddedSt3 struct { *PrimitivesStruct *ArraysStruct *SlicesStruct *PointersStruct *EmptyStruct }
func (EmbeddedSt3) EmptyPBMessage ¶
func (goo EmbeddedSt3) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*EmbeddedSt3) FromPBMessage ¶
func (EmbeddedSt3) GetTypeURL ¶
func (_ EmbeddedSt3) GetTypeURL() (typeURL string)
func (EmbeddedSt3) ToPBMessage ¶
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 (EmbeddedSt4) GetTypeURL ¶
func (_ EmbeddedSt4) GetTypeURL() (typeURL string)
func (EmbeddedSt4) ToPBMessage ¶
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 (EmbeddedSt5) GetTypeURL ¶
func (_ EmbeddedSt5) GetTypeURL() (typeURL string)
func (EmbeddedSt5) ToPBMessage ¶
type EmptyStruct ¶
type EmptyStruct struct { }
func (EmptyStruct) EmptyPBMessage ¶
func (goo EmptyStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*EmptyStruct) FromPBMessage ¶
func (EmptyStruct) GetTypeURL ¶
func (_ EmptyStruct) GetTypeURL() (typeURL string)
func (EmptyStruct) ToPBMessage ¶
type IntAr ¶
type IntAr [4]int
This will be encoded as message SomeName { repeated int val = 1; }
func (*IntAr) FromPBMessage ¶
func (IntAr) GetTypeURL ¶
type IntDef ¶
type IntDef int
This will be encoded as message SomeName { int64 val = 1; }
func (IntDef) EmptyPBMessage ¶
func (*IntDef) FromPBMessage ¶
func (IntDef) GetTypeURL ¶
type IntSl ¶
type IntSl []int
This will be encoded as message SomeName { repeated int val = 1; }
func (*IntSl) FromPBMessage ¶
func (IntSl) GetTypeURL ¶
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 (InterfaceFieldsStruct) GetTypeURL ¶
func (_ InterfaceFieldsStruct) GetTypeURL() (typeURL string)
func (InterfaceFieldsStruct) ToPBMessage ¶
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 EmptyPtSl []*EmptyStruct }
func (PointerSlicesStruct) EmptyPBMessage ¶
func (goo PointerSlicesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*PointerSlicesStruct) FromPBMessage ¶
func (PointerSlicesStruct) GetTypeURL ¶
func (_ PointerSlicesStruct) GetTypeURL() (typeURL string)
func (PointerSlicesStruct) ToPBMessage ¶
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 EmptyPt *EmptyStruct }
func (PointersStruct) EmptyPBMessage ¶
func (goo PointersStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*PointersStruct) FromPBMessage ¶
func (PointersStruct) GetTypeURL ¶
func (_ PointersStruct) GetTypeURL() (typeURL string)
func (PointersStruct) ToPBMessage ¶
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 Empty EmptyStruct // contains filtered or unexported fields }
func (PrimitivesStruct) EmptyPBMessage ¶
func (goo PrimitivesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*PrimitivesStruct) FromPBMessage ¶
func (PrimitivesStruct) GetTypeURL ¶
func (_ PrimitivesStruct) GetTypeURL() (typeURL string)
func (PrimitivesStruct) ToPBMessage ¶
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 (PrimitivesStructAr) GetTypeURL ¶
func (_ PrimitivesStructAr) GetTypeURL() (typeURL string)
func (PrimitivesStructAr) ToPBMessage ¶
type PrimitivesStructDef ¶
type PrimitivesStructDef PrimitivesStruct
func (PrimitivesStructDef) EmptyPBMessage ¶
func (goo PrimitivesStructDef) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*PrimitivesStructDef) FromPBMessage ¶
func (PrimitivesStructDef) GetTypeURL ¶
func (_ PrimitivesStructDef) GetTypeURL() (typeURL string)
func (PrimitivesStructDef) ToPBMessage ¶
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 (PrimitivesStructSl) GetTypeURL ¶
func (_ PrimitivesStructSl) GetTypeURL() (typeURL string)
func (PrimitivesStructSl) ToPBMessage ¶
type ReprElem2 ¶
type ReprElem2 struct { Key string Value interface{} }
func (ReprElem2) EmptyPBMessage ¶
func (*ReprElem2) FromPBMessage ¶
func (ReprElem2) GetTypeURL ¶
type ReprElem7 ¶
type ReprElem7 struct {
A int8
}
func (ReprElem7) EmptyPBMessage ¶
func (*ReprElem7) FromPBMessage ¶
func (ReprElem7) GetTypeURL ¶
func (ReprElem7) MarshalAmino ¶
func (ReprElem7) ToPBMessage ¶
func (*ReprElem7) UnmarshalAmino ¶
type ReprStruct1 ¶
func (ReprStruct1) EmptyPBMessage ¶
func (goo ReprStruct1) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ReprStruct1) FromPBMessage ¶
func (ReprStruct1) GetTypeURL ¶
func (_ ReprStruct1) GetTypeURL() (typeURL string)
func (ReprStruct1) ToPBMessage ¶
type ReprStruct4 ¶
type ReprStruct4 struct {
A int32
}
type ShortArraysStruct ¶
func (ShortArraysStruct) EmptyPBMessage ¶
func (goo ShortArraysStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*ShortArraysStruct) FromPBMessage ¶
func (ShortArraysStruct) GetTypeURL ¶
func (_ ShortArraysStruct) GetTypeURL() (typeURL string)
func (ShortArraysStruct) ToPBMessage ¶
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 EmptySlSl [][]EmptyStruct }
func (SlicesSlicesStruct) EmptyPBMessage ¶
func (goo SlicesSlicesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*SlicesSlicesStruct) FromPBMessage ¶
func (SlicesSlicesStruct) GetTypeURL ¶
func (_ SlicesSlicesStruct) GetTypeURL() (typeURL string)
func (SlicesSlicesStruct) ToPBMessage ¶
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 EmptySl []EmptyStruct }
func (SlicesStruct) EmptyPBMessage ¶
func (goo SlicesStruct) EmptyPBMessage(cdc *amino.Codec) (msg proto.Message)
func (*SlicesStruct) FromPBMessage ¶
func (SlicesStruct) GetTypeURL ¶
func (_ SlicesStruct) GetTypeURL() (typeURL string)