Versions in this module Expand all Collapse all v2 v2.9.3 Mar 12, 2021 Changes in this version + func RegisterCommandHandler(s server.Server, hdlr CommandHandler, opts ...server.HandlerOption) + func RegisterCommandServer(s *grpc.Server, srv CommandServer) + type CommandClient interface + Exec func(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) + Help func(ctx context.Context, in *HelpRequest, opts ...grpc.CallOption) (*HelpResponse, error) + func NewCommandClient(cc *grpc.ClientConn) CommandClient + type CommandHandler interface + Exec func(context.Context, *ExecRequest, *ExecResponse) error + Help func(context.Context, *HelpRequest, *HelpResponse) error + type CommandServer interface + Exec func(context.Context, *ExecRequest) (*ExecResponse, error) + Help func(context.Context, *HelpRequest) (*HelpResponse, error) + type CommandService interface + Exec func(ctx context.Context, in *ExecRequest, opts ...client.CallOption) (*ExecResponse, error) + Help func(ctx context.Context, in *HelpRequest, opts ...client.CallOption) (*HelpResponse, error) + func NewCommandService(serviceName string, c client.Client) CommandService + type ExecRequest struct + Args []string + func (*ExecRequest) Descriptor() ([]byte, []int) + func (*ExecRequest) ProtoMessage() + func (m *ExecRequest) GetArgs() []string + func (m *ExecRequest) Reset() + func (m *ExecRequest) String() string + type ExecResponse struct + Error string + Result []byte + func (*ExecResponse) Descriptor() ([]byte, []int) + func (*ExecResponse) ProtoMessage() + func (m *ExecResponse) GetError() string + func (m *ExecResponse) GetResult() []byte + func (m *ExecResponse) Reset() + func (m *ExecResponse) String() string + type HelpRequest struct + func (*HelpRequest) Descriptor() ([]byte, []int) + func (*HelpRequest) ProtoMessage() + func (m *HelpRequest) Reset() + func (m *HelpRequest) String() string + type HelpResponse struct + Description string + Usage string + func (*HelpResponse) Descriptor() ([]byte, []int) + func (*HelpResponse) ProtoMessage() + func (m *HelpResponse) GetDescription() string + func (m *HelpResponse) GetUsage() string + func (m *HelpResponse) Reset() + func (m *HelpResponse) String() string