View Source Ravix.Documents.Session.Supervisor (ravix v0.9.0)

Supervisor for RavenDB Sessions

Link to this section Summary

Functions

Closes a session for the informed store using the session pid or session_id

Creates a session with the informed initial state

Link to this section Functions

Link to this function

close_session(store, session_id)

View Source
@spec close_session(atom(), bitstring()) :: :ok | {:error, :not_found}

Closes a session for the informed store using the session pid or session_id

Link to this function

create_session(session_state)

View Source
@spec create_session(Ravix.Documents.Session.State.t()) ::
  :ignore | {:error, any()} | {:ok, pid()} | {:ok, pid(), any()}

Creates a session with the informed initial state

@spec start_link(any()) :: :ignore | {:error, any()} | {:ok, pid()}