grpc

package
v0.0.0-...-d23ef4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package grpc is a generated protocol buffer package.

It is generated from these files:

command.proto

It has these top-level messages:

CommandRequest
CommandResp
CommandHelpRequest
CommandHelpResp
ListCommandResp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommandInterfaceServer

func RegisterCommandInterfaceServer(s *grpc1.Server, srv CommandInterfaceServer)

Types

type CommandHelpRequest

type CommandHelpRequest struct {
	Subcommand string `protobuf:"bytes,1,opt,name=subcommand" json:"subcommand,omitempty"`
}

func (*CommandHelpRequest) Descriptor

func (*CommandHelpRequest) Descriptor() ([]byte, []int)

func (*CommandHelpRequest) GetSubcommand

func (m *CommandHelpRequest) GetSubcommand() string

func (*CommandHelpRequest) ProtoMessage

func (*CommandHelpRequest) ProtoMessage()

func (*CommandHelpRequest) Reset

func (m *CommandHelpRequest) Reset()

func (*CommandHelpRequest) String

func (m *CommandHelpRequest) String() string

type CommandHelpResp

type CommandHelpResp struct {
	Help string `protobuf:"bytes,1,opt,name=help" json:"help,omitempty"`
	// Types that are valid to be assigned to OptionalErr:
	//	*CommandHelpResp_Error
	OptionalErr isCommandHelpResp_OptionalErr `protobuf_oneof:"optional_err"`
}

func (*CommandHelpResp) Descriptor

func (*CommandHelpResp) Descriptor() ([]byte, []int)

func (*CommandHelpResp) GetError

func (m *CommandHelpResp) GetError() string

func (*CommandHelpResp) GetHelp

func (m *CommandHelpResp) GetHelp() string

func (*CommandHelpResp) GetOptionalErr

func (m *CommandHelpResp) GetOptionalErr() isCommandHelpResp_OptionalErr

func (*CommandHelpResp) ProtoMessage

func (*CommandHelpResp) ProtoMessage()

func (*CommandHelpResp) Reset

func (m *CommandHelpResp) Reset()

func (*CommandHelpResp) String

func (m *CommandHelpResp) String() string

func (*CommandHelpResp) XXX_OneofFuncs

func (*CommandHelpResp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type CommandHelpResp_Error

type CommandHelpResp_Error struct {
	Error string `protobuf:"bytes,2,opt,name=error,oneof"`
}

type CommandInterfaceClient

type CommandInterfaceClient interface {
	Command(ctx context.Context, in *CommandRequest, opts ...grpc1.CallOption) (*CommandResp, error)
	GetHelp(ctx context.Context, in *CommandHelpRequest, opts ...grpc1.CallOption) (*CommandHelpResp, error)
	ListCommand(ctx context.Context, in *google_protobuf.Empty, opts ...grpc1.CallOption) (*ListCommandResp, error)
}

func NewCommandInterfaceClient

func NewCommandInterfaceClient(cc *grpc1.ClientConn) CommandInterfaceClient

type CommandPlugin

type CommandPlugin struct {
}

func (*CommandPlugin) Instance

func (cp *CommandPlugin) Instance(ctx context.Context, conn interface{}) (interface{}, error)

type CommandRequest

type CommandRequest struct {
	Name   string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Params []string `protobuf:"bytes,2,rep,name=params" json:"params,omitempty"`
}

func (*CommandRequest) Descriptor

func (*CommandRequest) Descriptor() ([]byte, []int)

func (*CommandRequest) GetName

func (m *CommandRequest) GetName() string

func (*CommandRequest) GetParams

func (m *CommandRequest) GetParams() []string

func (*CommandRequest) ProtoMessage

func (*CommandRequest) ProtoMessage()

func (*CommandRequest) Reset

func (m *CommandRequest) Reset()

func (*CommandRequest) String

func (m *CommandRequest) String() string

type CommandResp

type CommandResp struct {
	Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// Types that are valid to be assigned to OptionalErr:
	//	*CommandResp_Error
	OptionalErr isCommandResp_OptionalErr `protobuf_oneof:"optional_err"`
}

func (*CommandResp) Descriptor

func (*CommandResp) Descriptor() ([]byte, []int)

func (*CommandResp) GetError

func (m *CommandResp) GetError() string

func (*CommandResp) GetOptionalErr

func (m *CommandResp) GetOptionalErr() isCommandResp_OptionalErr

func (*CommandResp) GetResult

func (m *CommandResp) GetResult() string

func (*CommandResp) ProtoMessage

func (*CommandResp) ProtoMessage()

func (*CommandResp) Reset

func (m *CommandResp) Reset()

func (*CommandResp) String

func (m *CommandResp) String() string

func (*CommandResp) XXX_OneofFuncs

func (*CommandResp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type CommandResp_Error

type CommandResp_Error struct {
	Error string `protobuf:"bytes,2,opt,name=error,oneof"`
}

type ListCommandResp

type ListCommandResp struct {
	Commands []string `protobuf:"bytes,1,rep,name=commands" json:"commands,omitempty"`
	// Types that are valid to be assigned to OptionalErr:
	//	*ListCommandResp_Error
	OptionalErr isListCommandResp_OptionalErr `protobuf_oneof:"optional_err"`
}

func (*ListCommandResp) Descriptor

func (*ListCommandResp) Descriptor() ([]byte, []int)

func (*ListCommandResp) GetCommands

func (m *ListCommandResp) GetCommands() []string

func (*ListCommandResp) GetError

func (m *ListCommandResp) GetError() string

func (*ListCommandResp) GetOptionalErr

func (m *ListCommandResp) GetOptionalErr() isListCommandResp_OptionalErr

func (*ListCommandResp) ProtoMessage

func (*ListCommandResp) ProtoMessage()

func (*ListCommandResp) Reset

func (m *ListCommandResp) Reset()

func (*ListCommandResp) String

func (m *ListCommandResp) String() string

func (*ListCommandResp) XXX_OneofFuncs

func (*ListCommandResp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ListCommandResp_Error

type ListCommandResp_Error struct {
	Error string `protobuf:"bytes,2,opt,name=error,oneof"`
}

Jump to

Keyboard shortcuts

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