Documentation
¶
Overview ¶
Package jsonwrite provides pooled buffers and atomic file writes for the bulk-alert pipeline.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PutBuffer ¶
PutBuffer returns a *bytes.Buffer to the pool. Buffers that have grown unreasonably large are discarded to avoid pinning large slices.
func WriteAtomic ¶
WriteAtomic writes data to path via a sibling .tmp file followed by rename, so readers tailing the directory never see a partially-written JSON file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.