Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader(clients ...*node.Client) *Downloader
type SegmentDownloader ¶
type SegmentDownloader struct {
// contains filtered or unexported fields
}
func NewSegmentDownloader ¶
func NewSegmentDownloader(clients []*node.Client, file *download.DownloadingFile, withProof bool) (*SegmentDownloader, error)
func (*SegmentDownloader) Download ¶
func (downloader *SegmentDownloader) Download() error
Download downloads segments in parallel.
func (*SegmentDownloader) ParallelCollect ¶
func (downloader *SegmentDownloader) ParallelCollect(result *parallel.Result) error
ParallelCollect implements the parallel.Interface interface.
func (*SegmentDownloader) ParallelDo ¶
func (downloader *SegmentDownloader) ParallelDo(routine, task int) (interface{}, error)
ParallelDo implements the parallel.Interface interface.
type UploadOption ¶
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
func NewUploader ¶
func NewUploader(flow *contract.FlowContract, clients []*node.Client) *Uploader
func NewUploaderLight ¶
func (*Uploader) BatchUpload ¶ added in v0.1.3
func (uploader *Uploader) BatchUpload(datas []core.IterableData, option ...[]UploadOption) error
upload data(batchly in 1 blockchain transaction if there are more than one files)
func (*Uploader) Upload ¶
func (uploader *Uploader) Upload(data core.IterableData, option ...UploadOption) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.