View Source Yex.Managed.SharedDoc.PersistenceBehaviour behaviour (y_ex v0.5.0)

Persistence behavior for SharedDoc

Summary

Callbacks

Link to this callback

bind(state, doc_name, doc)

View Source
@callback bind(state :: term(), doc_name :: String.t(), doc :: Yex.Doc.t()) :: term()
Link to this callback

unbind(state, doc_name, doc)

View Source (optional)
@callback unbind(state :: term(), doc_name :: String.t(), doc :: Yex.Doc.t()) :: :ok
Link to this callback

update_v1(state, update, doc_name, doc)

View Source (optional)
@callback update_v1(
  state :: term(),
  update :: binary(),
  doc_name :: String.t(),
  doc :: Yex.Doc.t()
) :: term()