Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct { Handler Callback // contains filtered or unexported fields }
Writer allows to buffer some items and call the Handler function either when the buffer is full or the timeout is reached. There will also be support for concurrency for high volume. The handler function is supposed to return an array of booleans to indicate whether the transfer was successful or not. It can be replaced with status codes in the future to differentiate I/O errors, rate limiting, authorization issues.
func NewWriter ¶
func NewWriter(cfg WriterConfig, cb Callback) *Writer
Click to show internal directories.
Click to hide internal directories.