Documentation ¶
Index ¶
- Variables
- type DownloadmanagerService
- func (s *DownloadmanagerService) AddTask(ctx context.Context, req *pb.AddTaskRequest) (*commonPb.Empty, error)
- func (s *DownloadmanagerService) DeleteTask(ctx context.Context, req *pb.DeleteTaskRequest) (*commonPb.Empty, error)
- func (s *DownloadmanagerService) GetTask(ctx context.Context, req *pb.GetTaskRequest) (*pb.GetTaskReply, error)
- func (s *DownloadmanagerService) ListTask(ctx context.Context, req *commonPb.Empty) (*pb.ListTaskReply, error)
- func (s *DownloadmanagerService) ScanTask(ctx context.Context, req *commonPb.Empty) (*pb.ScanTaskReply, error)
- func (s *DownloadmanagerService) ScanTaskAndDownload(ctx context.Context, req *commonPb.Empty) (*pb.ScanTaskAndDownloadReply, error)
- func (s *DownloadmanagerService) UpdateTask(ctx context.Context, req *pb.UpdateTaskRequest) (*commonPb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewDownloadmanagerService, config.NewHTTPServerConfig, config.NewGrpcServerConfig)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type DownloadmanagerService ¶
type DownloadmanagerService struct { pb.UnimplementedDownloadmanagerServer // contains filtered or unexported fields }
func NewDownloadmanagerService ¶
func NewDownloadmanagerService(downloadManager *biz.DownloadManager, logger log.Logger) *DownloadmanagerService
func (*DownloadmanagerService) AddTask ¶
func (s *DownloadmanagerService) AddTask(ctx context.Context, req *pb.AddTaskRequest) (*commonPb.Empty, error)
func (*DownloadmanagerService) DeleteTask ¶
func (s *DownloadmanagerService) DeleteTask(ctx context.Context, req *pb.DeleteTaskRequest) (*commonPb.Empty, error)
func (*DownloadmanagerService) GetTask ¶
func (s *DownloadmanagerService) GetTask(ctx context.Context, req *pb.GetTaskRequest) (*pb.GetTaskReply, error)
func (*DownloadmanagerService) ListTask ¶
func (s *DownloadmanagerService) ListTask(ctx context.Context, req *commonPb.Empty) (*pb.ListTaskReply, error)
func (*DownloadmanagerService) ScanTask ¶
func (s *DownloadmanagerService) ScanTask(ctx context.Context, req *commonPb.Empty) (*pb.ScanTaskReply, error)
func (*DownloadmanagerService) ScanTaskAndDownload ¶
func (s *DownloadmanagerService) ScanTaskAndDownload(ctx context.Context, req *commonPb.Empty) (*pb.ScanTaskAndDownloadReply, error)
func (*DownloadmanagerService) UpdateTask ¶
func (s *DownloadmanagerService) UpdateTask(ctx context.Context, req *pb.UpdateTaskRequest) (*commonPb.Empty, error)
Click to show internal directories.
Click to hide internal directories.