Versions in this module Expand all Collapse all v1 v1.16.1 Nov 13, 2019 Changes in this version + func RegisterCommandHandler(s server.Server, hdlr CommandHandler, opts ...server.HandlerOption) error + type CommandHandler 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(name string, c client.Client) CommandService + type ExecRequest struct + Args []string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ExecRequest) Descriptor() ([]byte, []int) + func (*ExecRequest) ProtoMessage() + func (dst *ExecRequest) XXX_Merge(src proto.Message) + func (m *ExecRequest) GetArgs() []string + func (m *ExecRequest) Reset() + func (m *ExecRequest) String() string + func (m *ExecRequest) XXX_DiscardUnknown() + func (m *ExecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ExecRequest) XXX_Size() int + func (m *ExecRequest) XXX_Unmarshal(b []byte) error + type ExecResponse struct + Error string + Result []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ExecResponse) Descriptor() ([]byte, []int) + func (*ExecResponse) ProtoMessage() + func (dst *ExecResponse) XXX_Merge(src proto.Message) + func (m *ExecResponse) GetError() string + func (m *ExecResponse) GetResult() []byte + func (m *ExecResponse) Reset() + func (m *ExecResponse) String() string + func (m *ExecResponse) XXX_DiscardUnknown() + func (m *ExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ExecResponse) XXX_Size() int + func (m *ExecResponse) XXX_Unmarshal(b []byte) error + type HelpRequest struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*HelpRequest) Descriptor() ([]byte, []int) + func (*HelpRequest) ProtoMessage() + func (dst *HelpRequest) XXX_Merge(src proto.Message) + func (m *HelpRequest) Reset() + func (m *HelpRequest) String() string + func (m *HelpRequest) XXX_DiscardUnknown() + func (m *HelpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *HelpRequest) XXX_Size() int + func (m *HelpRequest) XXX_Unmarshal(b []byte) error + type HelpResponse struct + Description string + Usage string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*HelpResponse) Descriptor() ([]byte, []int) + func (*HelpResponse) ProtoMessage() + func (dst *HelpResponse) XXX_Merge(src proto.Message) + func (m *HelpResponse) GetDescription() string + func (m *HelpResponse) GetUsage() string + func (m *HelpResponse) Reset() + func (m *HelpResponse) String() string + func (m *HelpResponse) XXX_DiscardUnknown() + func (m *HelpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *HelpResponse) XXX_Size() int + func (m *HelpResponse) XXX_Unmarshal(b []byte) error