Documentation ¶
Index ¶
- Variables
- type HttpFile
- func (f *HttpFile) Close() error
- func (f *HttpFile) Name() string
- func (f *HttpFile) Open() (err error)
- func (f *HttpFile) Read(p []byte) (n int, err error)
- func (f *HttpFile) ReadAt(p []byte, offset int64) (n int, err error)
- func (f *HttpFile) Readdir(count int) ([]fs.FileInfo, error)
- func (f *HttpFile) Readdirnames(count int) ([]string, error)
- func (f *HttpFile) Seek(offset int64, whence int) (int64, error)
- func (f *HttpFile) SetClient(client *http.Client)
- func (f *HttpFile) Stat() (fs.FileInfo, error)
- func (f *HttpFile) Sync() error
- func (f *HttpFile) Truncate(size int64) error
- func (f *HttpFile) Write(p []byte) (int, error)
- func (f *HttpFile) WriteAt(p []byte, offset int64) (int, error)
- func (f *HttpFile) WriteString(str string) (int, error)
- type HttpFileInfo
- type Range
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoRangeSupport = errors.New("remote server doesn't support seeking") ErrUnsupportedRangeType = errors.New("unsupported range type") ErrNegativeSeek = errors.New("cannot seek below 0") ErrExceededLength = errors.New("exceeded content size") ErrNoWrite = errors.New("unable to write to http server") )
Functions ¶
This section is empty.
Types ¶
type HttpFile ¶
type HttpFile struct { Url string Requests uint64 ReadBytes uint64 ContentType string ContentSize int64 RangeSupport bool ModTime time.Time io.ReadSeekCloser io.ReaderAt // contains filtered or unexported fields }
func NewHttpFile ¶
type HttpFileInfo ¶
type HttpFileInfo struct {
// contains filtered or unexported fields
}
func (*HttpFileInfo) IsDir ¶
func (f *HttpFileInfo) IsDir() bool
func (*HttpFileInfo) ModTime ¶
func (f *HttpFileInfo) ModTime() time.Time
func (*HttpFileInfo) Mode ¶
func (f *HttpFileInfo) Mode() fs.FileMode
func (*HttpFileInfo) Name ¶
func (f *HttpFileInfo) Name() string
func (*HttpFileInfo) Size ¶
func (f *HttpFileInfo) Size() int64
func (*HttpFileInfo) Sys ¶
func (f *HttpFileInfo) Sys() interface{}
Click to show internal directories.
Click to hide internal directories.