Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadCloser ¶
ReadCloser is a standard interface for filestream Reader.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implements buffered file reader.
func Open ¶
Open opens the file from the given path in nocache mode.
If nocache is set, then the reader doesn't pollute OS page cache.
func OpenReaderAt ¶ added in v1.29.0
OpenReaderAt opens the file at the given path in nocache mode at the given offset.
If nocache is set, then the reader doesn't pollute OS page cache.
type WriteCloser ¶
WriteCloser is a standard interface for filestream Writer.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements buffered file writer.
func Create ¶
Create creates the file for the given path in nocache mode.
If nocache is set, the writer doesn't pollute OS page cache.
func OpenWriterAt ¶ added in v1.29.0
OpenWriterAt opens the file at path in nocache mode for writing at the given offset.
The file at path is created if it is missing.
If nocache is set, the writer doesn't pollute OS page cache.
func (*Writer) MustClose ¶
func (w *Writer) MustClose()
MustClose syncs the underlying file to storage and then closes it.