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

Link to this section Summary

Link to this section Callbacks

Specs

__decode__({Version.t(), term()}) :: term()

Specs

__encode__(term()) :: {Version.t(), term()}

Specs

apply(state :: any(), event :: map()) :: {:ok, any()} | {:error, atom()}

Specs

base(id :: any()) :: any()

Specs

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)