Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileReader ¶
type HttpReader ¶
type HttpReader struct {
Url string
}
func (HttpReader) GetFileSize ¶
func (h HttpReader) GetFileSize() (int64, error)
func (HttpReader) GetObjectByRange ¶
func (h HttpReader) GetObjectByRange(offset, size int64) (io.ReadCloser, error)
type Instance ¶
type Instance struct { Workers int `yaml:"workers" default:"4"` PartSize string `yaml:"part-size" default:"100MiB"` BufSize string `yaml:"buf-size" default:"2MiB"` // contains filtered or unexported fields }
type OssReader ¶
type OssReader struct { ObjectName string Client *helper_oss.Client }
func (OssReader) GetFileSize ¶
func (OssReader) GetObjectByRange ¶
func (o OssReader) GetObjectByRange(offset, size int64) (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.