Something went wrong. Try again.
Elixir ATProtocol ingestion and sync library.
Something went wrong. Try again.
1234567891011121314151617181920212223242526defmodule BasicConsumer do use Drinkup.Firehose
@impl true def handle_event(%Drinkup.Firehose.Event.Commit{} = event) do IO.inspect(event, label: "Got commit event") end
def handle_event(_), do: :noopend
defmodule ExampleSupervisor do use Supervisor
def start_link(arg \\ []) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end
@impl true def init(_) do children = [BasicConsumer]
Supervisor.init(children, strategy: :one_for_one) endend