Rill v0.10.4 Rill.MessageStore.Base View Source

Link to this section Summary

Link to this section Functions

Link to this function

read(session, stream_name, opts \\ [], fun \\ nil) View Source
read(
  session :: Rill.Session.t(),
  stream_name :: Rill.MessageStore.StreamName.t(),
  opts :: [Rill.MessageStore.read_option()],
  fun ::
    nil
    | (%Rill.MessageStore.MessageData.Read{
         data: term(),
         global_position: term(),
         id: term(),
         metadata: term(),
         position: term(),
         stream_name: term(),
         time: term(),
         type: term()
       },
       term() ->
         term())
) :: Enumerable.t() | term()

Link to this function

write(session, message, stream_name) View Source

Link to this function

write(session, message, stream_name, opts) View Source
write(
  session :: Rill.Session.t(),
  messages :: struct() | [struct()],
  stream_name :: Rill.MessageStore.StreamName.t(),
  opts :: [Rill.MessageStore.write_option()]
) :: non_neg_integer()

Link to this function

write_initial(session, message, stream_name) View Source
write_initial(
  session :: Rill.Session.t(),
  message :: struct(),
  stream_name :: Rill.MessageStore.StreamName.t()
) :: non_neg_integer()