protocol

package
v0.0.0-...-7bcfc8b Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2016 License: MIT Imports: 3 Imported by: 2

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) Descriptor() ([]byte, []int)

func (*Command) GetArgs

func (m *Command) GetArgs() []string

func (*Command) GetCommandId

func (m *Command) GetCommandId() CommandId

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

type CommandId

type CommandId int32
const (
	CommandId_PING CommandId = 0
	CommandId_SET  CommandId = 1
	CommandId_GET  CommandId = 2
	CommandId_DEL  CommandId = 3
	CommandId_CGET CommandId = 4
	CommandId_CADD CommandId = 5
)

func (CommandId) Enum

func (x CommandId) Enum() *CommandId

func (CommandId) EnumDescriptor

func (CommandId) EnumDescriptor() ([]byte, []int)

func (CommandId) String

func (x CommandId) String() string

func (*CommandId) UnmarshalJSON

func (x *CommandId) UnmarshalJSON(data []byte) error

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) Descriptor() ([]byte, []int)

func (*Reply) GetError

func (m *Reply) GetError() string

func (*Reply) GetValues

func (m *Reply) GetValues() []string

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) Reset

func (m *Reply) Reset()

func (*Reply) String

func (m *Reply) String() string

Jump to

Keyboard shortcuts

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