View Source grisp_updater_source behaviour (grisp_updater v2.1.0)
Summary
Callbacks
-callback source_handle(State :: term(), Msg :: term()) -> pass | {ok, State :: term} | {data, StreamRef :: term(), Data :: binary(), State :: term()} | {done, StreamRef :: term(), Data :: binary(), State :: term()} | {stream_error, [StreamRef :: term()], Reason :: term(), State :: term()} | {source_error, SourceRef :: term(), Reason :: term(), State :: term()}.