Versions in this module Expand all Collapse all v1 v1.0.0 Sep 20, 2023 Changes in this version + const Downloader_Download_FullMethodName + const Downloader_Stats_FullMethodName + const Downloader_Verify_FullMethodName + var Downloader_ServiceDesc = grpc.ServiceDesc + var File_downloader_downloader_proto protoreflect.FileDescriptor + func RegisterDownloaderServer(s grpc.ServiceRegistrar, srv DownloaderServer) + type DownloadItem struct + Path string + TorrentHash *types.H160 + func (*DownloadItem) Descriptor() ([]byte, []int) + func (*DownloadItem) ProtoMessage() + func (x *DownloadItem) GetPath() string + func (x *DownloadItem) GetTorrentHash() *types.H160 + func (x *DownloadItem) ProtoReflect() protoreflect.Message + func (x *DownloadItem) Reset() + func (x *DownloadItem) String() string + type DownloadRequest struct + Items []*DownloadItem + func (*DownloadRequest) Descriptor() ([]byte, []int) + func (*DownloadRequest) ProtoMessage() + func (x *DownloadRequest) GetItems() []*DownloadItem + func (x *DownloadRequest) ProtoReflect() protoreflect.Message + func (x *DownloadRequest) Reset() + func (x *DownloadRequest) String() string + type DownloaderClient interface + Download func(ctx context.Context, in *DownloadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Stats func(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsReply, error) + Verify func(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + func NewDownloaderClient(cc grpc.ClientConnInterface) DownloaderClient + type DownloaderServer interface + Download func(context.Context, *DownloadRequest) (*emptypb.Empty, error) + Stats func(context.Context, *StatsRequest) (*StatsReply, error) + Verify func(context.Context, *VerifyRequest) (*emptypb.Empty, error) + type StatsReply struct + BytesCompleted uint64 + BytesTotal uint64 + Completed bool + ConnectionsTotal uint64 + DownloadRate uint64 + FilesTotal int32 + MetadataReady int32 + PeersUnique int32 + Progress float32 + UploadRate uint64 + func (*StatsReply) Descriptor() ([]byte, []int) + func (*StatsReply) ProtoMessage() + func (x *StatsReply) GetBytesCompleted() uint64 + func (x *StatsReply) GetBytesTotal() uint64 + func (x *StatsReply) GetCompleted() bool + func (x *StatsReply) GetConnectionsTotal() uint64 + func (x *StatsReply) GetDownloadRate() uint64 + func (x *StatsReply) GetFilesTotal() int32 + func (x *StatsReply) GetMetadataReady() int32 + func (x *StatsReply) GetPeersUnique() int32 + func (x *StatsReply) GetProgress() float32 + func (x *StatsReply) GetUploadRate() uint64 + func (x *StatsReply) ProtoReflect() protoreflect.Message + func (x *StatsReply) Reset() + func (x *StatsReply) String() string + type StatsRequest struct + func (*StatsRequest) Descriptor() ([]byte, []int) + func (*StatsRequest) ProtoMessage() + func (x *StatsRequest) ProtoReflect() protoreflect.Message + func (x *StatsRequest) Reset() + func (x *StatsRequest) String() string + type UnimplementedDownloaderServer struct + func (UnimplementedDownloaderServer) Download(context.Context, *DownloadRequest) (*emptypb.Empty, error) + func (UnimplementedDownloaderServer) Stats(context.Context, *StatsRequest) (*StatsReply, error) + func (UnimplementedDownloaderServer) Verify(context.Context, *VerifyRequest) (*emptypb.Empty, error) + type UnsafeDownloaderServer interface + type VerifyRequest struct + func (*VerifyRequest) Descriptor() ([]byte, []int) + func (*VerifyRequest) ProtoMessage() + func (x *VerifyRequest) ProtoReflect() protoreflect.Message + func (x *VerifyRequest) Reset() + func (x *VerifyRequest) String() string