kvasir v0.0.5 Kvasir.Storage behaviour View Source

Link to this section Summary

Link to this section Callbacks

Link to this callback

child_spec(name, opts)

View Source
child_spec(name :: atom(), opts :: Keyword.t()) :: false | map()
Link to this callback

contains?(name, arg2, arg3)

View Source
contains?(name :: atom(), Kvasir.topic(), Kvasir.Offset.t()) ::
  :maybe | true | false
Link to this callback

freeze(name, arg2, event)

View Source
freeze(name :: atom(), Kvasir.Topic.t(), event :: map()) ::
  :ok | {:error, atom()}
Link to this callback

offsets(name, arg2)

View Source
offsets(name :: atom(), Kvasir.topic()) ::
  {:ok, Kvasir.Offset.t()} | {:error, atom()}
Link to this callback

stream(name, arg2)

View Source
stream(name :: atom(), Kvasir.topic()) :: {:ok, Stream.t()} | {:error, atom()}