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

Persistence behavior for SharedDoc

Summary

Callbacks

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

unbind(term, doc_name, doc)

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

update_v1(term, update, doc_name, doc)

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