protocols

package
v0.0.0-...-4895fb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPJob

type HTTPJob struct {
	URL       string
	Name      string
	Extension string
	worker.WriteCounter
}

HTTPJob is single job for download one file from http/https

func (*HTTPJob) Download

func (h *HTTPJob) Download(dst io.Writer) error

Download write http remote S3Job to dst io.Writer

func (HTTPJob) FullName

func (h HTTPJob) FullName() string

FullName returns file name with extension

type S3Job

type S3Job struct {
	Item      string
	Bucket    string
	TotalSize uint64

	S3Session *session.Session
	worker.WriteCounter
}

S3Job is single job for download one item from Amazon S3

func (*S3Job) Download

func (h *S3Job) Download(dst io.Writer) error

Download write s3 item to dst io.Writer

func (S3Job) FullName

func (h S3Job) FullName() string

FullName returns file name with extension

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL