Documentation
¶
Index ¶
Constants ¶
const ( PluginService_PluginInfo_FullMethodName = "/plugin.v1.PluginService/PluginInfo" PluginService_ImportFile_FullMethodName = "/plugin.v1.PluginService/ImportFile" )
Variables ¶
var File_plugin_v1_plugin_proto protoreflect.FileDescriptor
var PluginService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "plugin.v1.PluginService", HandlerType: (*PluginServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PluginInfo", Handler: _PluginService_PluginInfo_Handler, }, { MethodName: "ImportFile", Handler: _PluginService_ImportFile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/v1/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 PluginServiceClient ¶
type PluginServiceClient interface {
PluginInfo(ctx context.Context, in *messages.PluginInfoRequest, opts ...grpc.CallOption) (*messages.PluginInfoResponse, error)
// ImportFile imports a file into the plugin
// When the filetype is not supported by the plugin it returns an UNIMPLEMENTED error
ImportFile(ctx context.Context, in *messages.ImportFileRequest, opts ...grpc.CallOption) (*messages.ImportFileResponse, 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 {
PluginInfo(context.Context, *messages.PluginInfoRequest) (*messages.PluginInfoResponse, error)
// ImportFile imports a file into the plugin
// When the filetype is not supported by the plugin it returns an UNIMPLEMENTED error
ImportFile(context.Context, *messages.ImportFileRequest) (*messages.ImportFileResponse, 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) ImportFile ¶
func (UnimplementedPluginServiceServer) ImportFile(context.Context, *messages.ImportFileRequest) (*messages.ImportFileResponse, error)
func (UnimplementedPluginServiceServer) PluginInfo ¶
func (UnimplementedPluginServiceServer) PluginInfo(context.Context, *messages.PluginInfoRequest) (*messages.PluginInfoResponse, 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.