Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscardWriteBuffer ¶
type DiscardWriteBuffer struct { }
func NewDiscardWriteBuffer ¶
func NewDiscardWriteBuffer() *DiscardWriteBuffer
type Downloader ¶
type FileCopyJob ¶
type FilesystemDownload ¶
type FilesystemDownload struct { Readpath string Writepath string Workers uint Threads uint Partsize int64 MaxList int IsBenchmark bool Bar *pb.ProgressBar Log *logging.Logger StartTime time.Time }
func (FilesystemDownload) Throughput ¶
func (d FilesystemDownload) Throughput() float64
type LogProgressWriteBuffer ¶
type LogProgressWriteBuffer struct {
// contains filtered or unexported fields
}
func NewLogProgressWriteBuffer ¶
func NewLogProgressWriteBuffer(bar *pb.ProgressBar, w io.WriterAt) *LogProgressWriteBuffer
type MultiNicHTTPClient ¶
type MultiNicHTTPClient struct { // List of NICs we're load balancing traffic across NICs []net.IP // contains filtered or unexported fields }
func NewMultiNicHTTPClient ¶
func NewMultiNicHTTPClient(nicNames []string) (*MultiNicHTTPClient, error)
func (*MultiNicHTTPClient) Client ¶
func (mn *MultiNicHTTPClient) Client() *http.Client
*
- From the go standard libraries http.Client docs:
- The Client's Transport typically has internal state (cached TCP connections), so Clients should be reused instead of created as needed.
- Clients are safe for concurrent use by multiple goroutines.
type S3Download ¶
type S3Download struct { Bucket string Prefix string Writepath string Region string Workers uint Threads uint Partsize int64 MaxList int IsBenchmark bool NICs []string Bar *pb.ProgressBar Log *logging.Logger StartTime time.Time }
func (S3Download) Throughput ¶
func (d S3Download) Throughput() float64
Click to show internal directories.
Click to hide internal directories.