Argus.Symbols.Store behaviour (Panoptes v0.13.0)

Copy Markdown View Source

Where a Argus.Symbols table keeps its mapping. Both directions must be safe to call from any process, and intern/2 must return the same id for the same binary for the table's lifetime.

Summary

Callbacks

intern(state, binary)

@callback intern(state :: term(), binary()) :: Argus.Symbols.id()

resolve(state, id)

@callback resolve(state :: term(), Argus.Symbols.id()) :: binary()