Kvasir.Command behaviour (kvasir_agent v0.0.15) View Source

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Specs

__command__(atom()) :: any()

Specs

validate(t()) :: :ok | {:error, atom()}

Link to this section Functions

Link to this macro

__using__(opts \\ [])

View Source (macro)
Link to this macro

command(type, opts)

View Source (macro)
Link to this macro

command(type, opts, list)

View Source (macro)

Create a command by passing the command module and payload.

Link to this function

decode(value, opts \\ [])

View Source

See Kvasir.Command.Encoder.decode/2.

Link to this function

decode(command, payload, meta)

View Source

See Kvasir.Command.Encoder.decode/3.

Link to this function

encode(value, opts \\ [])

View Source

See Kvasir.Command.Encoder.encode/2.

Link to this macro

field(name, type \\ :string, opts \\ [])

View Source (macro)
Link to this function

set_instance(command, instance)

View Source
Link to this function

set_offset(command, offset)

View Source