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 ¶
- func RegisterCommandInterfaceServer(s *grpc1.Server, srv CommandInterfaceServer)
- type CommandHelpRequest
- type CommandHelpResp
- func (*CommandHelpResp) Descriptor() ([]byte, []int)
- func (m *CommandHelpResp) GetError() string
- func (m *CommandHelpResp) GetHelp() string
- func (m *CommandHelpResp) GetOptionalErr() isCommandHelpResp_OptionalErr
- func (*CommandHelpResp) ProtoMessage()
- func (m *CommandHelpResp) Reset()
- func (m *CommandHelpResp) String() string
- func (*CommandHelpResp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type CommandHelpResp_Error
- type CommandInterfaceClient
- type CommandInterfaceServer
- type CommandPlugin
- type CommandRequest
- type CommandResp
- func (*CommandResp) Descriptor() ([]byte, []int)
- func (m *CommandResp) GetError() string
- func (m *CommandResp) GetOptionalErr() isCommandResp_OptionalErr
- func (m *CommandResp) GetResult() string
- func (*CommandResp) ProtoMessage()
- func (m *CommandResp) Reset()
- func (m *CommandResp) String() string
- func (*CommandResp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type CommandResp_Error
- type ListCommandResp
- func (*ListCommandResp) Descriptor() ([]byte, []int)
- func (m *ListCommandResp) GetCommands() []string
- func (m *ListCommandResp) GetError() string
- func (m *ListCommandResp) GetOptionalErr() isListCommandResp_OptionalErr
- func (*ListCommandResp) ProtoMessage()
- func (m *ListCommandResp) Reset()
- func (m *ListCommandResp) String() string
- func (*ListCommandResp) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type ListCommandResp_Error
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 CommandInterfaceServer ¶
type CommandInterfaceServer interface { Command(context.Context, *CommandRequest) (*CommandResp, error) GetHelp(context.Context, *CommandHelpRequest) (*CommandHelpResp, error) ListCommand(context.Context, *google_protobuf.Empty) (*ListCommandResp, error) }
type CommandPlugin ¶
type CommandPlugin struct { }
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"`
}
Click to show internal directories.
Click to hide internal directories.