batch_please v0.2.0 BatchPlease.FileBatcher
Link to this section Summary
Link to this section Types
Link to this type
batch()
The state of a single FileBatcher batch.
filename
is a string holding the name of the file containing items
from the current batch.
file
is a filehandle to the current batch file.
encode
is a function which takes an item as input and encodes it
into string format. It returns either {:ok, encoded_item}
or
{:error, message}. Defaults to
&Poison.encode/1.
decodeis a function which takes a string-encoded item as input
and decodes it, returning either
or
.
Defaults to
&Poison.decode/1`.
Items can be of any type that is representable with the given
encode
and decode
functions (which, by default, use JSON).