View Source AshOban.ActorPersister behaviour (ash_oban v0.2.4)

A behaviour for storing and retrieving an actor from oban job arguments

Summary

Types

@type actor() :: any()
@type actor_json() :: any()

Callbacks

@callback lookup(actor_json :: actor_json() | nil) ::
  {:ok, actor() | nil} | {:error, Ash.Error.t()}
@callback store(actor :: actor()) :: actor_json :: actor_json()