Documentation ¶
Overview ¶
package buffile helps batch write by writes to the tempobary in-memory buffer under the assumption that many writes come in to the part of single file frequently.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferedFile ¶
type BufferedFile struct {
// contains filtered or unexported fields
}
BufferedFile abstracts a file with block-sized buffer to group writes that are likely consective. This object does not provide any mean of concurrency guarantee. Also note that the underlying file is assumed to have the content already written on disk, and the behavior on writing beyond the file size is not defined.
func New ¶
func New(filePath string) (*BufferedFile, error)
func (*BufferedFile) Close ¶
func (f *BufferedFile) Close() error
Click to show internal directories.
Click to hide internal directories.