kvasir_agent v0.0.1-proto4 Kvasir.Agent.Aggregate behaviour View Source

Documentation for Kvasir.Agent.Aggregate.

Link to this section Summary

Link to this section Functions

Link to this macro aggregate(list) View Source (macro)
Link to this macro field(name, type) View Source (macro)

Link to this section Callbacks

Link to this callback apply(state, event) View Source
apply(state :: any(), event :: map()) :: {:ok, any()} | {:error, atom()}
Link to this callback base(id) View Source
base(id :: any()) :: any()
Link to this callback execute(state, command) View Source
execute(state :: any(), command :: map()) ::
  :ok | {:ok, map()} | {:ok, [map()]} | {:error, atom()}