ExecutionPlane.Lane.Adapter behaviour (execution_plane v0.1.0)

Copy Markdown View Source

Transport lane adapter behaviour.

Summary

Callbacks

capabilities()

@callback capabilities() :: ExecutionPlane.Lane.Capabilities.t()

execute(t, keyword)

lane_id()

@callback lane_id() :: atom()

stream(t, keyword)

validate(t)

@callback validate(ExecutionPlane.ExecutionRequest.t()) ::
  :ok | {:error, ExecutionPlane.Admission.Rejection.t()}