View Source Kvasir.Agent.Entity behaviour (kvasir_agent v0.0.18)

Link to this section Summary

Link to this section Callbacks

@callback __decode__({Version.t(), term()}) :: term()
@callback __encode__(term()) :: {Version.t(), term()}
@callback apply(state :: any(), event :: map()) :: {:ok, any()} | {:error, atom()}
@callback base(id :: any()) :: any()
@callback execute(state :: any(), command :: map()) ::
  :ok | {:ok, map()} | {:ok, [map()]} | {:error, atom()}

Link to this section Functions

Link to this macro

entity(opts \\ [], block)

View Source (macro)
Link to this macro

upgrade(version, list)

View Source (macro)
Link to this macro

version(version, updated \\ nil)

View Source (macro)