Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPluginServiceServer(s grpc.ServiceRegistrar, srv PluginServiceServer)
- type PluginServiceClient
- type PluginServiceServer
- type UnimplementedPluginServiceServer
- func (UnimplementedPluginServiceServer) Export(context.Context, *messages.ExportRequest) (*messages.ExportResponse, error)
- func (UnimplementedPluginServiceServer) ExportToFile(context.Context, *messages.ExportToFileRequest) (*messages.ExportToFileResponse, error)
- func (UnimplementedPluginServiceServer) Parse(context.Context, *messages.ParseRequest) (*messages.ParseResponse, error)
- func (UnimplementedPluginServiceServer) ParseFromFile(context.Context, *messages.ParseFromFileRequest) (*messages.ParseFromFileResponse, error)
- func (UnimplementedPluginServiceServer) PluginInfo(context.Context, *messages.PluginInfoRequest) (*messages.PluginInfoResponse, error)
- type UnsafePluginServiceServer
Constants ¶
const ( PluginService_PluginInfo_FullMethodName = "/plugin.v1.PluginService/PluginInfo" PluginService_ParseFromFile_FullMethodName = "/plugin.v1.PluginService/ParseFromFile" PluginService_Parse_FullMethodName = "/plugin.v1.PluginService/Parse" PluginService_Export_FullMethodName = "/plugin.v1.PluginService/Export" PluginService_ExportToFile_FullMethodName = "/plugin.v1.PluginService/ExportToFile" )
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: "ParseFromFile", Handler: _PluginService_ParseFromFile_Handler, }, { MethodName: "Parse", Handler: _PluginService_Parse_Handler, }, { MethodName: "Export", Handler: _PluginService_Export_Handler, }, { MethodName: "ExportToFile", Handler: _PluginService_ExportToFile_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)
// ParseFromFile parses a local file and returns the tunes in the file.
// When the filetype is not supported by the plugin it returns an UNIMPLEMENTED error.
ParseFromFile(ctx context.Context, in *messages.ParseFromFileRequest, opts ...grpc.CallOption) (*messages.ParseFromFileResponse, error)
// Parse parses the data and returns the tunes from it.
Parse(ctx context.Context, in *messages.ParseRequest, opts ...grpc.CallOption) (*messages.ParseResponse, error)
// Export exports the tunes to data that can be restored to a file.
Export(ctx context.Context, in *messages.ExportRequest, opts ...grpc.CallOption) (*messages.ExportResponse, error)
// ExportToFile exports the tunes to a local file.
ExportToFile(ctx context.Context, in *messages.ExportToFileRequest, opts ...grpc.CallOption) (*messages.ExportToFileResponse, 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)
// ParseFromFile parses a local file and returns the tunes in the file.
// When the filetype is not supported by the plugin it returns an UNIMPLEMENTED error.
ParseFromFile(context.Context, *messages.ParseFromFileRequest) (*messages.ParseFromFileResponse, error)
// Parse parses the data and returns the tunes from it.
Parse(context.Context, *messages.ParseRequest) (*messages.ParseResponse, error)
// Export exports the tunes to data that can be restored to a file.
Export(context.Context, *messages.ExportRequest) (*messages.ExportResponse, error)
// ExportToFile exports the tunes to a local file.
ExportToFile(context.Context, *messages.ExportToFileRequest) (*messages.ExportToFileResponse, 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) Export ¶
func (UnimplementedPluginServiceServer) Export(context.Context, *messages.ExportRequest) (*messages.ExportResponse, error)
func (UnimplementedPluginServiceServer) ExportToFile ¶
func (UnimplementedPluginServiceServer) ExportToFile(context.Context, *messages.ExportToFileRequest) (*messages.ExportToFileResponse, error)
func (UnimplementedPluginServiceServer) Parse ¶
func (UnimplementedPluginServiceServer) Parse(context.Context, *messages.ParseRequest) (*messages.ParseResponse, error)
func (UnimplementedPluginServiceServer) ParseFromFile ¶
func (UnimplementedPluginServiceServer) ParseFromFile(context.Context, *messages.ParseFromFileRequest) (*messages.ParseFromFileResponse, 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.