Documentation ¶
Index ¶
- Variables
- type Config
- type File
- func (t *File) Close() error
- func (t *File) CopyTo(to *File, byteInSec int64, tryLock bool) error
- func (t *File) CopyToIoWriter(to io.Writer, byteInSec int64, tryLock bool) error
- func (t *File) Create()
- func (t *File) Delete() error
- func (t *File) File() *os.File
- func (t *File) IsDir() bool
- func (t *File) IsExist() bool
- func (t *File) Read(data []byte) (int, error)
- func (t *File) ReadAll(perReadSize int, maxReadSize int) (data []byte, e error)
- func (t *File) ReadUntil(separation byte, perReadSize int, maxReadSize int) (data []byte, e error)
- func (t *File) Seed(index int64, whence int) (e error)
- func (t *File) Sync() (e error)
- func (t *File) Write(data []byte, tryLock bool) (int, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Config Config // contains filtered or unexported fields }
func (*File) CopyToIoWriter ¶ added in v0.10.14
func (*File) Seed ¶
Seek sets the offset for the next Read or Write on file to offset, interpreted according to whence: 0 means relative to the origin of the file, 1 means relative to the current offset, and 2 means relative to the end. It returns the new offset and an error, if any. The behavior of Seek on a file opened with O_APPEND is not specified.
Click to show internal directories.
Click to hide internal directories.