Documentation ¶
Overview ¶
Package protobuf is a concrete implementation of the encoding abstractions.
Index ¶
- Constants
- func Decode(data io.Reader, v interface{}) error
- func DecodeRaw(data []byte, v interface{}) error
- func Encode(v interface{}) ([]byte, error)
- type Test
- func (*Test) Descriptor() ([]byte, []int)
- func (m *Test) GetLabel() string
- func (m *Test) GetReps() []int64
- func (m *Test) GetType() int32
- func (*Test) ProtoMessage()
- func (m *Test) Reset()
- func (m *Test) String() string
- func (m *Test) XXX_DiscardUnknown()
- func (m *Test) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Test) XXX_Merge(src proto.Message)
- func (m *Test) XXX_Size() int
- func (m *Test) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( // Type definition. Type string = "application/x-protobuf" // TypeGoogle definition. TypeGoogle string = "application/x-google-protobuf" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Test ¶
type Test struct { Label *string `protobuf:"bytes,1,req,name=label" json:"label,omitempty"` Type *int32 `protobuf:"varint,2,opt,name=type" json:"type,omitempty"` Reps []int64 `protobuf:"varint,3,rep,name=reps" json:"reps,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Test) Descriptor ¶
func (*Test) ProtoMessage ¶
func (*Test) ProtoMessage()
func (*Test) XXX_DiscardUnknown ¶
func (m *Test) XXX_DiscardUnknown()
func (*Test) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.