Instream v1.0.0 Instream.Writer behaviour View Source
Point writer behaviour.
Link to this section Summary
Link to this section Types
Specs
Link to this section Callbacks
Specs
init_worker(worker_state()) :: worker_state()
Called during worker initialization.
This will be called for every process in the worker pool individually.
Specs
terminate_worker(worker_state()) :: :ok
Called during worker termination.
This will be called for every process in the worker pool individually.
Specs
write(payload :: Instream.Query.t(), opts :: Keyword.t(), worker_state()) :: Instream.Response.t()
Writes a point.