Documentation ¶
Overview ¶
Package protobuf contains a codec to encode and decode entities in Protocol Buffer
Package protobuf is a generated protocol buffer package.
It is generated from these files:
simple_user.proto
It has these top-level messages:
SimpleUser
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Codec = new(protobufCodec)
)
More details on Protocol Buffers https://github.com/golang/protobuf
Functions ¶
This section is empty.
Types ¶
type SimpleUser ¶
type SimpleUser struct { Id uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty" storm:"id"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Age int32 `protobuf:"varint,3,opt,name=age" json:"age,omitempty"` }
func (*SimpleUser) Descriptor ¶
func (*SimpleUser) Descriptor() ([]byte, []int)
func (*SimpleUser) ProtoMessage ¶
func (*SimpleUser) ProtoMessage()
func (*SimpleUser) Reset ¶
func (m *SimpleUser) Reset()
func (*SimpleUser) String ¶
func (m *SimpleUser) String() string
Click to show internal directories.
Click to hide internal directories.