Documentation
¶
Overview ¶
Package Juicy is a generated protocol buffer package.
It is generated from these files:
commandpb/command.proto
It has these top-level messages:
CommandReq CommandResp
Index ¶
- Variables
- func RegisterDBCommandServer(s *grpc.Server, srv DBCommandServer)
- type CommandReq
- func (*CommandReq) Descriptor() ([]byte, []int)
- func (m *CommandReq) GetCommand() CommandReq_Command
- func (m *CommandReq) GetFilename() string
- func (m *CommandReq) GetKey() string
- func (m *CommandReq) GetValue() string
- func (*CommandReq) ProtoMessage()
- func (m *CommandReq) Reset()
- func (m *CommandReq) String() string
- type CommandReq_Command
- type CommandResp
- func (*CommandResp) Descriptor() ([]byte, []int)
- func (m *CommandResp) GetEmpty() bool
- func (m *CommandResp) GetError() string
- func (m *CommandResp) GetHave() bool
- func (m *CommandResp) GetSuccess() bool
- func (m *CommandResp) GetValue() string
- func (*CommandResp) ProtoMessage()
- func (m *CommandResp) Reset()
- func (m *CommandResp) String() string
- type DBCommandClient
- type DBCommandServer
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandReq_Command_name = map[int32]string{
0: "Set",
1: "Get",
2: "Have",
3: "Empty",
4: "Clear",
5: "Delete",
6: "Persist",
}
View Source
var CommandReq_Command_value = map[string]int32{
"Set": 0,
"Get": 1,
"Have": 2,
"Empty": 3,
"Clear": 4,
"Delete": 5,
"Persist": 6,
}
Functions ¶
func RegisterDBCommandServer ¶
func RegisterDBCommandServer(s *grpc.Server, srv DBCommandServer)
Types ¶
type CommandReq ¶
type CommandReq struct { Command CommandReq_Command `protobuf:"varint,1,opt,name=command,enum=Juicy.CommandReq_Command" json:"command,omitempty"` Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` Filename string `protobuf:"bytes,4,opt,name=filename" json:"filename,omitempty"` }
func (*CommandReq) Descriptor ¶
func (*CommandReq) Descriptor() ([]byte, []int)
func (*CommandReq) GetCommand ¶
func (m *CommandReq) GetCommand() CommandReq_Command
func (*CommandReq) GetFilename ¶
func (m *CommandReq) GetFilename() string
func (*CommandReq) GetKey ¶
func (m *CommandReq) GetKey() string
func (*CommandReq) GetValue ¶
func (m *CommandReq) GetValue() string
func (*CommandReq) ProtoMessage ¶
func (*CommandReq) ProtoMessage()
func (*CommandReq) Reset ¶
func (m *CommandReq) Reset()
func (*CommandReq) String ¶
func (m *CommandReq) String() string
type CommandReq_Command ¶
type CommandReq_Command int32
const ( CommandReq_Set CommandReq_Command = 0 CommandReq_Get CommandReq_Command = 1 CommandReq_Have CommandReq_Command = 2 CommandReq_Empty CommandReq_Command = 3 CommandReq_Clear CommandReq_Command = 4 CommandReq_Delete CommandReq_Command = 5 CommandReq_Persist CommandReq_Command = 6 )
func (CommandReq_Command) EnumDescriptor ¶
func (CommandReq_Command) EnumDescriptor() ([]byte, []int)
func (CommandReq_Command) String ¶
func (x CommandReq_Command) String() string
type CommandResp ¶
type CommandResp struct { Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` Empty bool `protobuf:"varint,3,opt,name=empty" json:"empty,omitempty"` Have bool `protobuf:"varint,4,opt,name=have" json:"have,omitempty"` Value string `protobuf:"bytes,5,opt,name=value" json:"value,omitempty"` }
func (*CommandResp) Descriptor ¶
func (*CommandResp) Descriptor() ([]byte, []int)
func (*CommandResp) GetEmpty ¶
func (m *CommandResp) GetEmpty() bool
func (*CommandResp) GetError ¶
func (m *CommandResp) GetError() string
func (*CommandResp) GetHave ¶
func (m *CommandResp) GetHave() bool
func (*CommandResp) GetSuccess ¶
func (m *CommandResp) GetSuccess() bool
func (*CommandResp) GetValue ¶
func (m *CommandResp) GetValue() string
func (*CommandResp) ProtoMessage ¶
func (*CommandResp) ProtoMessage()
func (*CommandResp) Reset ¶
func (m *CommandResp) Reset()
func (*CommandResp) String ¶
func (m *CommandResp) String() string
type DBCommandClient ¶
type DBCommandClient interface {
CommandRPC(ctx context.Context, in *CommandReq, opts ...grpc.CallOption) (*CommandResp, error)
}
func NewDBCommandClient ¶
func NewDBCommandClient(cc *grpc.ClientConn) DBCommandClient
type DBCommandServer ¶
type DBCommandServer interface {
CommandRPC(context.Context, *CommandReq) (*CommandResp, error)
}
Click to show internal directories.
Click to hide internal directories.