View Source Kvasir.Storage behaviour (kvasir v0.0.18)
Link to this section Summary
Link to this section Callbacks
@callback contains?(name :: atom(), Kvasir.topic(), Kvasir.Offset.t()) :: :maybe | true | false
@callback freeze(name :: atom(), Kvasir.Topic.t(), event :: map()) :: :ok | {:error, atom()}
@callback offsets(name :: atom(), Kvasir.topic()) :: {:ok, Kvasir.Offset.t()} | {:error, atom()}
@callback stream(name :: atom(), Kvasir.topic()) :: {:ok, Stream.t()} | {:error, atom()}