Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultBufferSize = 4096
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Location string TimeLocation *time.Location BufferSize int EnablePeriodicFlush bool FlushInterval time.Duration }
type Qalam ¶
type Qalam struct {
// contains filtered or unexported fields
}
func (*Qalam) Close ¶
func (q *Qalam) Close()
A successful close does not guarantee that the data has been successfully saved to disk, as the kernel defers writes. It is not common for a file system to flush the buffers when the stream is closed. If you need to be sure that the data is physically stored use fsync(2). (It will depend on the disk hardware at this point.)
func (*Qalam) SetBufferSize ¶
SetBufferSize set's the size of the buffer which is kept in memory before pushing to disk. Defaults to 4096, the default page size on older SSDs, can be set accordingly
Click to show internal directories.
Click to hide internal directories.