Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirBuffer ¶
type DirBuffer struct {
// contains filtered or unexported fields
}
func NewDirBuffer ¶
A disk-based ping-pong buffer. Reads and writes can be done simultaneously.
type FileBuffer ¶
type FileBuffer struct {
// contains filtered or unexported fields
}
A file-based buffer. Reads and writes are blocking each other - always prefer using the DirBuffer for this reason.
func NewFileBuffer ¶
func NewFileBuffer(path string) *FileBuffer
func (*FileBuffer) Close ¶
func (f *FileBuffer) Close() (err error)
Close implements io.WriteCloser.
func (*FileBuffer) HasData ¶ added in v0.8.0
func (f *FileBuffer) HasData() (ok bool, err error)
HasData implements Fallback.
Click to show internal directories.
Click to hide internal directories.