Juicy

package
v0.0.0-...-34eddc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2018 License: Apache-2.0 Imports: 5 Imported by: 2

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

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL