Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPluginServiceServer(s grpc.ServiceRegistrar, srv PluginServiceServer)
- type CommandRequest
- func (*CommandRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommandRequest) GetCommand() string
- func (x *CommandRequest) GetParameters() map[string]string
- func (*CommandRequest) ProtoMessage()
- func (x *CommandRequest) ProtoReflect() protoreflect.Message
- func (x *CommandRequest) Reset()
- func (x *CommandRequest) String() string
- type CommandResponse
- func (*CommandResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommandResponse) GetErrorMessage() string
- func (x *CommandResponse) GetResult() string
- func (x *CommandResponse) GetSuccess() bool
- func (*CommandResponse) ProtoMessage()
- func (x *CommandResponse) ProtoReflect() protoreflect.Message
- func (x *CommandResponse) Reset()
- func (x *CommandResponse) String() string
- type MenuItem
- type MenuRequest
- type MenuResponse
- type PluginInfo
- type PluginInfoRequest
- type PluginServiceClient
- type PluginServiceServer
- type UnimplementedPluginServiceServer
- func (UnimplementedPluginServiceServer) ExecuteCommand(context.Context, *CommandRequest) (*CommandResponse, error)
- func (UnimplementedPluginServiceServer) GetMenu(context.Context, *MenuRequest) (*MenuResponse, error)
- func (UnimplementedPluginServiceServer) GetPluginInfo(context.Context, *PluginInfoRequest) (*PluginInfo, error)
- type UnsafePluginServiceServer
Constants ¶
const ( PluginService_GetPluginInfo_FullMethodName = "/gitspace.plugin.PluginService/GetPluginInfo" PluginService_ExecuteCommand_FullMethodName = "/gitspace.plugin.PluginService/ExecuteCommand" PluginService_GetMenu_FullMethodName = "/gitspace.plugin.PluginService/GetMenu" )
Variables ¶
var File_proto_plugin_proto protoreflect.FileDescriptor
var PluginService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitspace.plugin.PluginService", HandlerType: (*PluginServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPluginInfo", Handler: _PluginService_GetPluginInfo_Handler, }, { MethodName: "ExecuteCommand", Handler: _PluginService_ExecuteCommand_Handler, }, { MethodName: "GetMenu", Handler: _PluginService_GetMenu_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/plugin.proto", }
PluginService_ServiceDesc is the grpc.ServiceDesc for PluginService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPluginServiceServer ¶
func RegisterPluginServiceServer(s grpc.ServiceRegistrar, srv PluginServiceServer)
Types ¶
type CommandRequest ¶
type CommandRequest struct {
Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
Parameters map[string]string `` /* 161-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*CommandRequest) Descriptor
deprecated
func (*CommandRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommandRequest.ProtoReflect.Descriptor instead.
func (*CommandRequest) GetCommand ¶
func (x *CommandRequest) GetCommand() string
func (*CommandRequest) GetParameters ¶
func (x *CommandRequest) GetParameters() map[string]string
func (*CommandRequest) ProtoMessage ¶
func (*CommandRequest) ProtoMessage()
func (*CommandRequest) ProtoReflect ¶
func (x *CommandRequest) ProtoReflect() protoreflect.Message
func (*CommandRequest) Reset ¶
func (x *CommandRequest) Reset()
func (*CommandRequest) String ¶
func (x *CommandRequest) String() string
type CommandResponse ¶
type CommandResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
Result string `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
func (*CommandResponse) Descriptor
deprecated
func (*CommandResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommandResponse.ProtoReflect.Descriptor instead.
func (*CommandResponse) GetErrorMessage ¶
func (x *CommandResponse) GetErrorMessage() string
func (*CommandResponse) GetResult ¶
func (x *CommandResponse) GetResult() string
func (*CommandResponse) GetSuccess ¶
func (x *CommandResponse) GetSuccess() bool
func (*CommandResponse) ProtoMessage ¶
func (*CommandResponse) ProtoMessage()
func (*CommandResponse) ProtoReflect ¶
func (x *CommandResponse) ProtoReflect() protoreflect.Message
func (*CommandResponse) Reset ¶
func (x *CommandResponse) Reset()
func (*CommandResponse) String ¶
func (x *CommandResponse) String() string
type MenuItem ¶
type MenuItem struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
// contains filtered or unexported fields
}
func (*MenuItem) Descriptor
deprecated
func (*MenuItem) GetCommand ¶
func (*MenuItem) ProtoMessage ¶
func (*MenuItem) ProtoMessage()
func (*MenuItem) ProtoReflect ¶
func (x *MenuItem) ProtoReflect() protoreflect.Message
type MenuRequest ¶
type MenuRequest struct {
// contains filtered or unexported fields
}
func (*MenuRequest) Descriptor
deprecated
func (*MenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use MenuRequest.ProtoReflect.Descriptor instead.
func (*MenuRequest) ProtoMessage ¶
func (*MenuRequest) ProtoMessage()
func (*MenuRequest) ProtoReflect ¶
func (x *MenuRequest) ProtoReflect() protoreflect.Message
func (*MenuRequest) Reset ¶
func (x *MenuRequest) Reset()
func (*MenuRequest) String ¶
func (x *MenuRequest) String() string
type MenuResponse ¶
type MenuResponse struct {
MenuData []byte `protobuf:"bytes,1,opt,name=menu_data,json=menuData,proto3" json:"menu_data,omitempty"`
// contains filtered or unexported fields
}
func (*MenuResponse) Descriptor
deprecated
func (*MenuResponse) Descriptor() ([]byte, []int)
Deprecated: Use MenuResponse.ProtoReflect.Descriptor instead.
func (*MenuResponse) GetMenuData ¶
func (x *MenuResponse) GetMenuData() []byte
func (*MenuResponse) ProtoMessage ¶
func (*MenuResponse) ProtoMessage()
func (*MenuResponse) ProtoReflect ¶
func (x *MenuResponse) ProtoReflect() protoreflect.Message
func (*MenuResponse) Reset ¶
func (x *MenuResponse) Reset()
func (*MenuResponse) String ¶
func (x *MenuResponse) String() string
type PluginInfo ¶
type PluginInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*PluginInfo) Descriptor
deprecated
func (*PluginInfo) Descriptor() ([]byte, []int)
Deprecated: Use PluginInfo.ProtoReflect.Descriptor instead.
func (*PluginInfo) GetName ¶
func (x *PluginInfo) GetName() string
func (*PluginInfo) GetVersion ¶
func (x *PluginInfo) GetVersion() string
func (*PluginInfo) ProtoMessage ¶
func (*PluginInfo) ProtoMessage()
func (*PluginInfo) ProtoReflect ¶
func (x *PluginInfo) ProtoReflect() protoreflect.Message
func (*PluginInfo) Reset ¶
func (x *PluginInfo) Reset()
func (*PluginInfo) String ¶
func (x *PluginInfo) String() string
type PluginInfoRequest ¶
type PluginInfoRequest struct {
// contains filtered or unexported fields
}
func (*PluginInfoRequest) Descriptor
deprecated
func (*PluginInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use PluginInfoRequest.ProtoReflect.Descriptor instead.
func (*PluginInfoRequest) ProtoMessage ¶
func (*PluginInfoRequest) ProtoMessage()
func (*PluginInfoRequest) ProtoReflect ¶
func (x *PluginInfoRequest) ProtoReflect() protoreflect.Message
func (*PluginInfoRequest) Reset ¶
func (x *PluginInfoRequest) Reset()
func (*PluginInfoRequest) String ¶
func (x *PluginInfoRequest) String() string
type PluginServiceClient ¶
type PluginServiceClient interface {
GetPluginInfo(ctx context.Context, in *PluginInfoRequest, opts ...grpc.CallOption) (*PluginInfo, error)
ExecuteCommand(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error)
GetMenu(ctx context.Context, in *MenuRequest, opts ...grpc.CallOption) (*MenuResponse, error)
}
PluginServiceClient is the client API for PluginService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPluginServiceClient ¶
func NewPluginServiceClient(cc grpc.ClientConnInterface) PluginServiceClient
type PluginServiceServer ¶
type PluginServiceServer interface {
GetPluginInfo(context.Context, *PluginInfoRequest) (*PluginInfo, error)
ExecuteCommand(context.Context, *CommandRequest) (*CommandResponse, error)
GetMenu(context.Context, *MenuRequest) (*MenuResponse, error)
// contains filtered or unexported methods
}
PluginServiceServer is the server API for PluginService service. All implementations must embed UnimplementedPluginServiceServer for forward compatibility.
type UnimplementedPluginServiceServer ¶
type UnimplementedPluginServiceServer struct{}
UnimplementedPluginServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedPluginServiceServer) ExecuteCommand ¶
func (UnimplementedPluginServiceServer) ExecuteCommand(context.Context, *CommandRequest) (*CommandResponse, error)
func (UnimplementedPluginServiceServer) GetMenu ¶
func (UnimplementedPluginServiceServer) GetMenu(context.Context, *MenuRequest) (*MenuResponse, error)
func (UnimplementedPluginServiceServer) GetPluginInfo ¶
func (UnimplementedPluginServiceServer) GetPluginInfo(context.Context, *PluginInfoRequest) (*PluginInfo, error)
type UnsafePluginServiceServer ¶
type UnsafePluginServiceServer interface {
// contains filtered or unexported methods
}
UnsafePluginServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginServiceServer will result in compilation errors.