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(mode ...fs.FileMode)
- 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 FileWhence) (e error)
- func (t *File) Stat() (fs.FileInfo, error)
- func (t *File) Sync() (e error)
- func (t *File) Write(data []byte, tryLock bool) (int, error)
- type FileWhence
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
type FileWhence ¶ added in v0.24.11
type FileWhence int
const ( AtOrigin FileWhence = iota AtCurrent AtEnd )
Click to show internal directories.
Click to hide internal directories.