Documentation ¶
Index ¶
- Variables
- func RegisterPackageImporterServer(s grpc.ServiceRegistrar, srv PackageImporterServer)
- type GarbageCollectReply
- type GarbageCollectRequest
- func (*GarbageCollectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GarbageCollectRequest) GetSourcePackage() string
- func (*GarbageCollectRequest) ProtoMessage()
- func (x *GarbageCollectRequest) ProtoReflect() protoreflect.Message
- func (x *GarbageCollectRequest) Reset()
- func (x *GarbageCollectRequest) String() string
- type ImportReply
- type ImportRequest
- func (*ImportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImportRequest) GetContent() []byte
- func (x *ImportRequest) GetFilename() string
- func (x *ImportRequest) GetSourcePackage() string
- func (*ImportRequest) ProtoMessage()
- func (x *ImportRequest) ProtoReflect() protoreflect.Message
- func (x *ImportRequest) Reset()
- func (x *ImportRequest) String() string
- type MergeReply
- type MergeRequest
- type PackageImporterClient
- type PackageImporterServer
- type PackageImporter_ImportClient
- type PackageImporter_ImportServer
- type PackagesReply
- type PackagesRequest
- type UnimplementedPackageImporterServer
- func (UnimplementedPackageImporterServer) GarbageCollect(context.Context, *GarbageCollectRequest) (*GarbageCollectReply, error)
- func (UnimplementedPackageImporterServer) Import(PackageImporter_ImportServer) error
- func (UnimplementedPackageImporterServer) Merge(context.Context, *MergeRequest) (*MergeReply, error)
- func (UnimplementedPackageImporterServer) Packages(context.Context, *PackagesRequest) (*PackagesReply, error)
- type UnsafePackageImporterServer
Constants ¶
This section is empty.
Variables ¶
var File_packageimporter_proto protoreflect.FileDescriptor
var PackageImporter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "packageimporterpb.PackageImporter", HandlerType: (*PackageImporterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Packages", Handler: _PackageImporter_Packages_Handler, }, { MethodName: "Merge", Handler: _PackageImporter_Merge_Handler, }, { MethodName: "GarbageCollect", Handler: _PackageImporter_GarbageCollect_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Import", Handler: _PackageImporter_Import_Handler, ClientStreams: true, }, }, Metadata: "packageimporter.proto", }
PackageImporter_ServiceDesc is the grpc.ServiceDesc for PackageImporter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPackageImporterServer ¶
func RegisterPackageImporterServer(s grpc.ServiceRegistrar, srv PackageImporterServer)
Types ¶
type GarbageCollectReply ¶
type GarbageCollectReply struct {
// contains filtered or unexported fields
}
func (*GarbageCollectReply) Descriptor
deprecated
func (*GarbageCollectReply) Descriptor() ([]byte, []int)
Deprecated: Use GarbageCollectReply.ProtoReflect.Descriptor instead.
func (*GarbageCollectReply) ProtoMessage ¶
func (*GarbageCollectReply) ProtoMessage()
func (*GarbageCollectReply) ProtoReflect ¶
func (x *GarbageCollectReply) ProtoReflect() protoreflect.Message
func (*GarbageCollectReply) Reset ¶
func (x *GarbageCollectReply) Reset()
func (*GarbageCollectReply) String ¶
func (x *GarbageCollectReply) String() string
type GarbageCollectRequest ¶
type GarbageCollectRequest struct { SourcePackage string `protobuf:"bytes,1,opt,name=source_package,json=sourcePackage,proto3" json:"source_package,omitempty"` // contains filtered or unexported fields }
func (*GarbageCollectRequest) Descriptor
deprecated
func (*GarbageCollectRequest) Descriptor() ([]byte, []int)
Deprecated: Use GarbageCollectRequest.ProtoReflect.Descriptor instead.
func (*GarbageCollectRequest) GetSourcePackage ¶
func (x *GarbageCollectRequest) GetSourcePackage() string
func (*GarbageCollectRequest) ProtoMessage ¶
func (*GarbageCollectRequest) ProtoMessage()
func (*GarbageCollectRequest) ProtoReflect ¶
func (x *GarbageCollectRequest) ProtoReflect() protoreflect.Message
func (*GarbageCollectRequest) Reset ¶
func (x *GarbageCollectRequest) Reset()
func (*GarbageCollectRequest) String ¶
func (x *GarbageCollectRequest) String() string
type ImportReply ¶
type ImportReply struct {
// contains filtered or unexported fields
}
func (*ImportReply) Descriptor
deprecated
func (*ImportReply) Descriptor() ([]byte, []int)
Deprecated: Use ImportReply.ProtoReflect.Descriptor instead.
func (*ImportReply) ProtoMessage ¶
func (*ImportReply) ProtoMessage()
func (*ImportReply) ProtoReflect ¶
func (x *ImportReply) ProtoReflect() protoreflect.Message
func (*ImportReply) Reset ¶
func (x *ImportReply) Reset()
func (*ImportReply) String ¶
func (x *ImportReply) String() string
type ImportRequest ¶
type ImportRequest struct { SourcePackage string `protobuf:"bytes,1,opt,name=source_package,json=sourcePackage,proto3" json:"source_package,omitempty"` // e.g. “i3-wm_4.13” Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"` // e.g. “src/main.c” Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*ImportRequest) Descriptor
deprecated
func (*ImportRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImportRequest.ProtoReflect.Descriptor instead.
func (*ImportRequest) GetContent ¶
func (x *ImportRequest) GetContent() []byte
func (*ImportRequest) GetFilename ¶
func (x *ImportRequest) GetFilename() string
func (*ImportRequest) GetSourcePackage ¶
func (x *ImportRequest) GetSourcePackage() string
func (*ImportRequest) ProtoMessage ¶
func (*ImportRequest) ProtoMessage()
func (*ImportRequest) ProtoReflect ¶
func (x *ImportRequest) ProtoReflect() protoreflect.Message
func (*ImportRequest) Reset ¶
func (x *ImportRequest) Reset()
func (*ImportRequest) String ¶
func (x *ImportRequest) String() string
type MergeReply ¶
type MergeReply struct {
// contains filtered or unexported fields
}
func (*MergeReply) Descriptor
deprecated
func (*MergeReply) Descriptor() ([]byte, []int)
Deprecated: Use MergeReply.ProtoReflect.Descriptor instead.
func (*MergeReply) ProtoMessage ¶
func (*MergeReply) ProtoMessage()
func (*MergeReply) ProtoReflect ¶
func (x *MergeReply) ProtoReflect() protoreflect.Message
func (*MergeReply) Reset ¶
func (x *MergeReply) Reset()
func (*MergeReply) String ¶
func (x *MergeReply) String() string
type MergeRequest ¶
type MergeRequest struct {
// contains filtered or unexported fields
}
func (*MergeRequest) Descriptor
deprecated
func (*MergeRequest) Descriptor() ([]byte, []int)
Deprecated: Use MergeRequest.ProtoReflect.Descriptor instead.
func (*MergeRequest) ProtoMessage ¶
func (*MergeRequest) ProtoMessage()
func (*MergeRequest) ProtoReflect ¶
func (x *MergeRequest) ProtoReflect() protoreflect.Message
func (*MergeRequest) Reset ¶
func (x *MergeRequest) Reset()
func (*MergeRequest) String ¶
func (x *MergeRequest) String() string
type PackageImporterClient ¶
type PackageImporterClient interface { // Packages returns a list of Debian source package names which are present on // this package importer instance. Packages(ctx context.Context, in *PackagesRequest, opts ...grpc.CallOption) (*PackagesReply, error) Import(ctx context.Context, opts ...grpc.CallOption) (PackageImporter_ImportClient, error) Merge(ctx context.Context, in *MergeRequest, opts ...grpc.CallOption) (*MergeReply, error) GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectReply, error) }
PackageImporterClient is the client API for PackageImporter 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 NewPackageImporterClient ¶
func NewPackageImporterClient(cc grpc.ClientConnInterface) PackageImporterClient
type PackageImporterServer ¶
type PackageImporterServer interface { // Packages returns a list of Debian source package names which are present on // this package importer instance. Packages(context.Context, *PackagesRequest) (*PackagesReply, error) Import(PackageImporter_ImportServer) error Merge(context.Context, *MergeRequest) (*MergeReply, error) GarbageCollect(context.Context, *GarbageCollectRequest) (*GarbageCollectReply, error) // contains filtered or unexported methods }
PackageImporterServer is the server API for PackageImporter service. All implementations must embed UnimplementedPackageImporterServer for forward compatibility
type PackageImporter_ImportClient ¶
type PackageImporter_ImportClient interface { Send(*ImportRequest) error CloseAndRecv() (*ImportReply, error) grpc.ClientStream }
type PackageImporter_ImportServer ¶
type PackageImporter_ImportServer interface { SendAndClose(*ImportReply) error Recv() (*ImportRequest, error) grpc.ServerStream }
type PackagesReply ¶
type PackagesReply struct { SourcePackage []string `protobuf:"bytes,1,rep,name=source_package,json=sourcePackage,proto3" json:"source_package,omitempty"` // contains filtered or unexported fields }
func (*PackagesReply) Descriptor
deprecated
func (*PackagesReply) Descriptor() ([]byte, []int)
Deprecated: Use PackagesReply.ProtoReflect.Descriptor instead.
func (*PackagesReply) GetSourcePackage ¶
func (x *PackagesReply) GetSourcePackage() []string
func (*PackagesReply) ProtoMessage ¶
func (*PackagesReply) ProtoMessage()
func (*PackagesReply) ProtoReflect ¶
func (x *PackagesReply) ProtoReflect() protoreflect.Message
func (*PackagesReply) Reset ¶
func (x *PackagesReply) Reset()
func (*PackagesReply) String ¶
func (x *PackagesReply) String() string
type PackagesRequest ¶
type PackagesRequest struct {
// contains filtered or unexported fields
}
func (*PackagesRequest) Descriptor
deprecated
func (*PackagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use PackagesRequest.ProtoReflect.Descriptor instead.
func (*PackagesRequest) ProtoMessage ¶
func (*PackagesRequest) ProtoMessage()
func (*PackagesRequest) ProtoReflect ¶
func (x *PackagesRequest) ProtoReflect() protoreflect.Message
func (*PackagesRequest) Reset ¶
func (x *PackagesRequest) Reset()
func (*PackagesRequest) String ¶
func (x *PackagesRequest) String() string
type UnimplementedPackageImporterServer ¶
type UnimplementedPackageImporterServer struct { }
UnimplementedPackageImporterServer must be embedded to have forward compatible implementations.
func (UnimplementedPackageImporterServer) GarbageCollect ¶
func (UnimplementedPackageImporterServer) GarbageCollect(context.Context, *GarbageCollectRequest) (*GarbageCollectReply, error)
func (UnimplementedPackageImporterServer) Import ¶
func (UnimplementedPackageImporterServer) Import(PackageImporter_ImportServer) error
func (UnimplementedPackageImporterServer) Merge ¶
func (UnimplementedPackageImporterServer) Merge(context.Context, *MergeRequest) (*MergeReply, error)
func (UnimplementedPackageImporterServer) Packages ¶
func (UnimplementedPackageImporterServer) Packages(context.Context, *PackagesRequest) (*PackagesReply, error)
type UnsafePackageImporterServer ¶
type UnsafePackageImporterServer interface {
// contains filtered or unexported methods
}
UnsafePackageImporterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PackageImporterServer will result in compilation errors.