casttype

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCasttype        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCasttype          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCasttype = fmt.Errorf("proto: unexpected end of group")
)

Functions

Types

type Castaway

type Castaway struct {
	Int32Ptr             *int32                                                                                                            `protobuf:"varint,1,opt,name=Int32Ptr,casttype=int32" json:"Int32Ptr,omitempty" pg:"Int32Ptr"`
	Int32                int32                                                                                                             `protobuf:"varint,2,opt,name=Int32,casttype=int32" json:"Int32" pg:"Int32"`
	MyUint64Ptr          *github_com_tron_us_protobuf_test_casttype.MyUint64Type                                                           `` /* 150-byte string literal not displayed */
	MyUint64             github_com_tron_us_protobuf_test_casttype.MyUint64Type                                                            `` /* 131-byte string literal not displayed */
	MyFloat32Ptr         *github_com_tron_us_protobuf_test_casttype.MyFloat32Type                                                          `` /* 155-byte string literal not displayed */
	MyFloat32            github_com_tron_us_protobuf_test_casttype.MyFloat32Type                                                           `` /* 136-byte string literal not displayed */
	MyFloat64Ptr         *github_com_tron_us_protobuf_test_casttype.MyFloat64Type                                                          `` /* 155-byte string literal not displayed */
	MyFloat64            github_com_tron_us_protobuf_test_casttype.MyFloat64Type                                                           `` /* 136-byte string literal not displayed */
	MyBytes              github_com_tron_us_protobuf_test_casttype.Bytes                                                                   `` /* 130-byte string literal not displayed */
	NormalBytes          []byte                                                                                                            `protobuf:"bytes,10,opt,name=NormalBytes" json:"NormalBytes,omitempty" pg:"NormalBytes"`
	MyUint64S            []github_com_tron_us_protobuf_test_casttype.MyUint64Type                                                          `` /* 145-byte string literal not displayed */
	MyMap                github_com_tron_us_protobuf_test_casttype.MyMapType                                                               `` /* 204-byte string literal not displayed */
	MyCustomMap          map[github_com_tron_us_protobuf_test_casttype.MyStringType]github_com_tron_us_protobuf_test_casttype.MyUint64Type `` /* 289-byte string literal not displayed */
	MyNullableMap        map[github_com_tron_us_protobuf_test_casttype.MyInt32Type]*Wilson                                                 `` /* 229-byte string literal not displayed */
	MyEmbeddedMap        map[github_com_tron_us_protobuf_test_casttype.MyInt32Type]Wilson                                                  `` /* 219-byte string literal not displayed */
	String_              *github_com_tron_us_protobuf_test_casttype.MyStringType                                                           `` /* 135-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                                                                                          `json:"-" pg:"-"`
	XXX_unrecognized     []byte                                                                                                            `json:"-" pg:"-"`
	XXX_sizecache        int32                                                                                                             `json:"-" pg:"-"`
}

func NewCastawayFromFace

func NewCastawayFromFace(that CastawayFace) *Castaway

func NewPopulatedCastaway

func NewPopulatedCastaway(r randyCasttype, easy bool) *Castaway

func (*Castaway) Descriptor

func (*Castaway) Descriptor() ([]byte, []int)

func (*Castaway) Equal

func (this *Castaway) Equal(that interface{}) bool

func (*Castaway) GetInt32

func (this *Castaway) GetInt32() int32

func (*Castaway) GetInt32Ptr

func (this *Castaway) GetInt32Ptr() *int32

func (*Castaway) GetMyBytes

func (*Castaway) GetMyEmbeddedMap

func (*Castaway) GetMyFloat32

func (*Castaway) GetMyFloat32Ptr

func (*Castaway) GetMyFloat64

func (*Castaway) GetMyFloat64Ptr

func (*Castaway) GetMyMap

func (*Castaway) GetMyNullableMap

func (*Castaway) GetMyUint64

func (*Castaway) GetMyUint64Ptr

func (*Castaway) GetMyUint64S

func (*Castaway) GetNormalBytes

func (this *Castaway) GetNormalBytes() []byte

func (*Castaway) GetString_

func (*Castaway) GoString

func (this *Castaway) GoString() string

func (*Castaway) Proto

func (*Castaway) ProtoMessage

func (*Castaway) ProtoMessage()

func (*Castaway) Reset

func (m *Castaway) Reset()

func (*Castaway) Size

func (m *Castaway) Size() (n int)

func (*Castaway) String

func (this *Castaway) String() string

func (*Castaway) TestProto

func (*Castaway) Unmarshal

func (m *Castaway) Unmarshal(dAtA []byte) error

func (*Castaway) VerboseEqual

func (this *Castaway) VerboseEqual(that interface{}) error

func (*Castaway) XXX_DiscardUnknown

func (m *Castaway) XXX_DiscardUnknown()

func (*Castaway) XXX_Marshal

func (m *Castaway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Castaway) XXX_Merge

func (m *Castaway) XXX_Merge(src proto.Message)

func (*Castaway) XXX_Size

func (m *Castaway) XXX_Size() int

func (*Castaway) XXX_Unmarshal

func (m *Castaway) XXX_Unmarshal(b []byte) error

type Wilson

type Wilson struct {
	Int64                *int64   `protobuf:"varint,1,opt,name=Int64" json:"Int64,omitempty" pg:"Int64"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func NewPopulatedWilson

func NewPopulatedWilson(r randyCasttype, easy bool) *Wilson

func NewWilsonFromFace

func NewWilsonFromFace(that WilsonFace) *Wilson

func (*Wilson) Descriptor

func (*Wilson) Descriptor() ([]byte, []int)

func (*Wilson) Equal

func (this *Wilson) Equal(that interface{}) bool

func (*Wilson) GetInt64

func (this *Wilson) GetInt64() *int64

func (*Wilson) GoString

func (this *Wilson) GoString() string

func (*Wilson) Proto

func (*Wilson) ProtoMessage

func (*Wilson) ProtoMessage()

func (*Wilson) Reset

func (m *Wilson) Reset()

func (*Wilson) Size

func (m *Wilson) Size() (n int)

func (*Wilson) String

func (this *Wilson) String() string

func (*Wilson) TestProto

func (*Wilson) Unmarshal

func (m *Wilson) Unmarshal(dAtA []byte) error

func (*Wilson) VerboseEqual

func (this *Wilson) VerboseEqual(that interface{}) error

func (*Wilson) XXX_DiscardUnknown

func (m *Wilson) XXX_DiscardUnknown()

func (*Wilson) XXX_Marshal

func (m *Wilson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Wilson) XXX_Merge

func (m *Wilson) XXX_Merge(src proto.Message)

func (*Wilson) XXX_Size

func (m *Wilson) XXX_Size() int

func (*Wilson) XXX_Unmarshal

func (m *Wilson) XXX_Unmarshal(b []byte) error

type WilsonFace

type WilsonFace interface {
	Proto() github_com_tron_us_protobuf_proto.Message
	GetInt64() *int64
}

Jump to

Keyboard shortcuts

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