kvasir_agent v0.0.1-proto2 Kvasir.Command behaviour View Source

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this macro __using__(opts \\ []) View Source (macro)

Create a command by passing the command module and payload.

Link to this function decode(value, meta \\ %Kvasir.Command.Meta{}) View Source
Link to this macro field(name, type \\ :string, opts \\ []) View Source (macro)

Link to this section Callbacks

Link to this callback __command__(atom) View Source
__command__(atom()) :: any()
Link to this callback create!(any) View Source
create!(any()) :: {:ok, t()} | {:error, atom()}
Link to this callback create(any) View Source
create(any()) :: {:ok, t()} | {:error, atom()}
Link to this callback factory(any) View Source
factory(any()) :: {:ok, map()} | {:error, atom()}
Link to this callback validate(t) View Source
validate(t()) :: :ok | {:error, atom()}