proto

package
v0.0.0-...-8c91f9f Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	PluginService_GetPluginInfo_FullMethodName  = "/gitspace.plugin.PluginService/GetPluginInfo"
	PluginService_ExecuteCommand_FullMethodName = "/gitspace.plugin.PluginService/ExecuteCommand"
	PluginService_GetMenu_FullMethodName        = "/gitspace.plugin.PluginService/GetMenu"
)

Variables

View Source
var File_proto_plugin_proto protoreflect.FileDescriptor
View Source
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 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() ([]byte, []int)

Deprecated: Use MenuItem.ProtoReflect.Descriptor instead.

func (x *MenuItem) GetCommand() string
func (x *MenuItem) GetLabel() string
func (*MenuItem) ProtoMessage()
func (x *MenuItem) ProtoReflect() protoreflect.Message
func (x *MenuItem) Reset()
func (x *MenuItem) String() string
type MenuRequest struct {
	// contains filtered or unexported fields
}
func (*MenuRequest) Descriptor() ([]byte, []int)

Deprecated: Use MenuRequest.ProtoReflect.Descriptor instead.

func (*MenuRequest) ProtoMessage()
func (x *MenuRequest) ProtoReflect() protoreflect.Message
func (x *MenuRequest) Reset()
func (x *MenuRequest) String() string
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() ([]byte, []int)

Deprecated: Use MenuResponse.ProtoReflect.Descriptor instead.

func (x *MenuResponse) GetMenuData() []byte
func (*MenuResponse) ProtoMessage()
func (x *MenuResponse) ProtoReflect() protoreflect.Message
func (x *MenuResponse) Reset()
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.

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) GetMenu

func (UnimplementedPluginServiceServer) GetPluginInfo

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.

Jump to

Keyboard shortcuts

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