Documentation ¶
Overview ¶
Package goserbench is a generated protocol buffer package. It is generated from these files: structdef-gogo.proto It has these top-level messages: GogoProtoBufA
Package goserbench is a generated protocol buffer package.
It is generated from these files:
structdef.proto
It has these top-level messages:
ProtoBufA
Index ¶
- Variables
- func FlatBufferAAddBirthDay(builder *flatbuffers.Builder, birthDay int64)
- func FlatBufferAAddMoney(builder *flatbuffers.Builder, money float64)
- func FlatBufferAAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)
- func FlatBufferAAddPhone(builder *flatbuffers.Builder, phone flatbuffers.UOffsetT)
- func FlatBufferAAddSiblings(builder *flatbuffers.Builder, siblings int32)
- func FlatBufferAAddSpouse(builder *flatbuffers.Builder, spouse byte)
- func FlatBufferAEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func FlatBufferAStart(builder *flatbuffers.Builder)
- type A
- func (z *A) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *A) EncodeMsg(en *msgp.Writer) (err error)
- func (v *A) MarshalEasyJSON(w *jwriter.Writer)
- func (v *A) MarshalJSONEasyJSON() ([]byte, error)
- func (z *A) MarshalMsg(b []byte) (o []byte, err error)
- func (z *A) Msgsize() (s int)
- func (v *A) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *A) UnmarshalJSONEasyJSON(data []byte) error
- func (z *A) UnmarshalMsg(bts []byte) (o []byte, err error)
- type ColferA
- type ColferContinue
- type ColferError
- type FlatBufferA
- func (rcv *FlatBufferA) BirthDay() int64
- func (rcv *FlatBufferA) Init(buf []byte, i flatbuffers.UOffsetT)
- func (rcv *FlatBufferA) Money() float64
- func (rcv *FlatBufferA) Name() []byte
- func (rcv *FlatBufferA) Phone() []byte
- func (rcv *FlatBufferA) Siblings() int32
- func (rcv *FlatBufferA) Spouse() byte
- type GencodeA
- type GencodeUnsafeA
- type GogoProtoBufA
- func (*GogoProtoBufA) Descriptor() ([]byte, []int)
- func (m *GogoProtoBufA) GetBirthDay() int64
- func (m *GogoProtoBufA) GetMoney() float64
- func (m *GogoProtoBufA) GetName() string
- func (m *GogoProtoBufA) GetPhone() string
- func (m *GogoProtoBufA) GetSiblings() int32
- func (m *GogoProtoBufA) GetSpouse() bool
- func (m *GogoProtoBufA) Marshal() (data []byte, err error)
- func (m *GogoProtoBufA) MarshalTo(data []byte) (int, error)
- func (*GogoProtoBufA) ProtoMessage()
- func (m *GogoProtoBufA) Reset()
- func (m *GogoProtoBufA) Size() (n int)
- func (m *GogoProtoBufA) String() string
- func (m *GogoProtoBufA) Unmarshal(data []byte) error
- type NoTimeA
- type ProtoBufA
- func (*ProtoBufA) Descriptor() ([]byte, []int)
- func (m *ProtoBufA) GetBirthDay() int64
- func (m *ProtoBufA) GetMoney() float64
- func (m *ProtoBufA) GetName() string
- func (m *ProtoBufA) GetPhone() string
- func (m *ProtoBufA) GetSiblings() int32
- func (m *ProtoBufA) GetSpouse() bool
- func (*ProtoBufA) ProtoMessage()
- func (m *ProtoBufA) Reset()
- func (m *ProtoBufA) String() string
- type XDRA
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthStructdefGogo = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStructdefGogo = fmt.Errorf("proto: integer overflow") )
Functions ¶
func FlatBufferAAddBirthDay ¶
func FlatBufferAAddBirthDay(builder *flatbuffers.Builder, birthDay int64)
func FlatBufferAAddMoney ¶
func FlatBufferAAddMoney(builder *flatbuffers.Builder, money float64)
func FlatBufferAAddName ¶
func FlatBufferAAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)
func FlatBufferAAddPhone ¶
func FlatBufferAAddPhone(builder *flatbuffers.Builder, phone flatbuffers.UOffsetT)
func FlatBufferAAddSiblings ¶
func FlatBufferAAddSiblings(builder *flatbuffers.Builder, siblings int32)
func FlatBufferAAddSpouse ¶
func FlatBufferAAddSpouse(builder *flatbuffers.Builder, spouse byte)
func FlatBufferAEnd ¶
func FlatBufferAEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func FlatBufferAStart ¶
func FlatBufferAStart(builder *flatbuffers.Builder)
Types ¶
type A ¶
type A struct { Name string BirthDay time.Time Phone string Siblings int Spouse bool Money float64 }
func (*A) MarshalEasyJSON ¶
func (*A) MarshalJSONEasyJSON ¶
func (*A) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (*A) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*A) UnmarshalEasyJSON ¶
func (*A) UnmarshalJSONEasyJSON ¶
type ColferA ¶
type ColferA struct { Name string BirthDay time.Time Phone string Siblings int32 Spouse bool Money float64 }
func (*ColferA) MarshalBinary ¶
MarshalBinary encodes o as Colfer conform encoding.BinaryMarshaler. The error return is always nil.
func (*ColferA) MarshalLen ¶
MarshalLen returns the Colfer serial byte size.
func (*ColferA) MarshalTo ¶
MarshalTo encodes o as Colfer into buf and returns the number of bytes written. If the buffer is too small, MarshalTo will panic.
func (*ColferA) UnmarshalBinary ¶
UnmarshalBinary decodes data as Colfer conform encoding.BinaryUnmarshaler. The error return options are io.EOF, goserbench.ColferError, and goserbench.ColferContinue.
type ColferContinue ¶
type ColferContinue int
ColferContinue signals a data continuation as a byte index.
func (ColferContinue) Error ¶
func (i ColferContinue) Error() string
type ColferError ¶
type ColferError int
ColferError signals a data mismatch as as a byte index.
func (ColferError) Error ¶
func (i ColferError) Error() string
type FlatBufferA ¶
type FlatBufferA struct {
// contains filtered or unexported fields
}
func (*FlatBufferA) BirthDay ¶
func (rcv *FlatBufferA) BirthDay() int64
func (*FlatBufferA) Init ¶
func (rcv *FlatBufferA) Init(buf []byte, i flatbuffers.UOffsetT)
func (*FlatBufferA) Money ¶
func (rcv *FlatBufferA) Money() float64
func (*FlatBufferA) Name ¶
func (rcv *FlatBufferA) Name() []byte
func (*FlatBufferA) Phone ¶
func (rcv *FlatBufferA) Phone() []byte
func (*FlatBufferA) Siblings ¶
func (rcv *FlatBufferA) Siblings() int32
func (*FlatBufferA) Spouse ¶
func (rcv *FlatBufferA) Spouse() byte
type GencodeA ¶
type GencodeUnsafeA ¶
type GencodeUnsafeA struct { Name string BirthDay int64 Phone string Siblings int64 Spouse bool Money float64 }
func (*GencodeUnsafeA) Size ¶
func (d *GencodeUnsafeA) Size() (s uint64)
type GogoProtoBufA ¶
type GogoProtoBufA struct { Name string `protobuf:"bytes,1,req,name=name" json:"name"` BirthDay int64 `protobuf:"varint,2,req,name=birthDay" json:"birthDay"` Phone string `protobuf:"bytes,3,req,name=phone" json:"phone"` Siblings int32 `protobuf:"varint,4,req,name=siblings" json:"siblings"` Spouse bool `protobuf:"varint,5,req,name=spouse" json:"spouse"` Money float64 `protobuf:"fixed64,6,req,name=money" json:"money"` }
func (*GogoProtoBufA) Descriptor ¶
func (*GogoProtoBufA) Descriptor() ([]byte, []int)
func (*GogoProtoBufA) GetBirthDay ¶
func (m *GogoProtoBufA) GetBirthDay() int64
func (*GogoProtoBufA) GetMoney ¶
func (m *GogoProtoBufA) GetMoney() float64
func (*GogoProtoBufA) GetName ¶
func (m *GogoProtoBufA) GetName() string
func (*GogoProtoBufA) GetPhone ¶
func (m *GogoProtoBufA) GetPhone() string
func (*GogoProtoBufA) GetSiblings ¶
func (m *GogoProtoBufA) GetSiblings() int32
func (*GogoProtoBufA) GetSpouse ¶
func (m *GogoProtoBufA) GetSpouse() bool
func (*GogoProtoBufA) Marshal ¶
func (m *GogoProtoBufA) Marshal() (data []byte, err error)
func (*GogoProtoBufA) ProtoMessage ¶
func (*GogoProtoBufA) ProtoMessage()
func (*GogoProtoBufA) Reset ¶
func (m *GogoProtoBufA) Reset()
func (*GogoProtoBufA) Size ¶
func (m *GogoProtoBufA) Size() (n int)
func (*GogoProtoBufA) String ¶
func (m *GogoProtoBufA) String() string
func (*GogoProtoBufA) Unmarshal ¶
func (m *GogoProtoBufA) Unmarshal(data []byte) error
type NoTimeA ¶
type NoTimeA struct { Name string BirthDay int64 Phone string Siblings int Spouse bool Money float64 }
func (*NoTimeA) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type ProtoBufA ¶
type ProtoBufA struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` BirthDay *int64 `protobuf:"varint,2,req,name=birthDay" json:"birthDay,omitempty"` Phone *string `protobuf:"bytes,3,req,name=phone" json:"phone,omitempty"` Siblings *int32 `protobuf:"varint,4,req,name=siblings" json:"siblings,omitempty"` Spouse *bool `protobuf:"varint,5,req,name=spouse" json:"spouse,omitempty"` Money *float64 `protobuf:"fixed64,6,req,name=money" json:"money,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ProtoBufA) Descriptor ¶
func (*ProtoBufA) GetBirthDay ¶
func (*ProtoBufA) GetSiblings ¶
func (*ProtoBufA) ProtoMessage ¶
func (*ProtoBufA) ProtoMessage()
type XDRA ¶
type XDRA struct { Name string BirthDay int64 Phone string Siblings int32 Spouse bool Money uint64 }
func (XDRA) MarshalXDR ¶
func (XDRA) MarshalXDRInto ¶
func (o XDRA) MarshalXDRInto(m *xdr.Marshaller) error
func (XDRA) MustMarshalXDR ¶
func (*XDRA) UnmarshalXDR ¶
func (*XDRA) UnmarshalXDRFrom ¶
func (o *XDRA) UnmarshalXDRFrom(u *xdr.Unmarshaller) error