Instream v0.18.0 Instream.Writer behaviour View Source

Point writer behaviour.

Link to this section Summary

Link to this section Callbacks

Link to this callback write(payload, opts, worker_state) View Source
write(
  payload :: Instream.Query.t(),
  opts :: Keyword.t(),
  worker_state :: map()
) :: Instream.Response.t()

Writes a point.

The worker_state parameter contains the state of the worker requesting the write operation. Please refer to the Instream.Pool.Worker module to see which parameters are available.