AshOnetime.ResponseClassifier behaviour (ash_onetime v0.6.0)

Copy Markdown View Source

Normalizes application response classification at the persistence boundary.

Summary

Callbacks

classify(term, map)

@callback classify(term(), map()) ::
  {:store, term()} | {:reject, term()} | {:rollback, term()}

Functions

classify(classifier, value, context)

@spec classify(module(), term(), map()) ::
  {:store, term()}
  | {:reject, term()}
  | {:rollback, term()}
  | {:error, AshOnetime.Error.t()}