Documentation
¶
Overview ¶
Package protocol is a generated protocol buffer package.
It is generated from these files:
messages.proto
It has these top-level messages:
Command Reply
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandId_name = map[int32]string{
0: "PING",
1: "SET",
2: "GET",
3: "DEL",
4: "CGET",
5: "CADD",
}
View Source
var CommandId_value = map[string]int32{
"PING": 0,
"SET": 1,
"GET": 2,
"DEL": 3,
"CGET": 4,
"CADD": 5,
}
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { CommandId *CommandId `protobuf:"varint,1,req,name=commandId,enum=protocol.CommandId" json:"commandId,omitempty"` Args []string `protobuf:"bytes,2,rep,name=args" json:"args,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Command) Descriptor ¶
func (*Command) GetCommandId ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
type CommandId ¶
type CommandId int32
func (CommandId) EnumDescriptor ¶
func (*CommandId) UnmarshalJSON ¶
type Reply ¶
type Reply struct { Values []string `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"` Error *string `protobuf:"bytes,2,req,name=error" json:"error,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Reply) Descriptor ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.