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

Supervisor for RavenDB Sessions

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

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

Creates a session with the informed initial state

Callback implementation for DynamicSupervisor.init/1.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

close_session(store, pid)

View Source
@spec close_session(atom(), pid() | 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

Callback implementation for DynamicSupervisor.init/1.

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