Grax.Id.Schema.Extension behaviour (Grax v0.6.0)

View Source

Summary

Types

t()

@type t() :: struct() | module()

Callbacks

call(extension, t, variables, opts)

@callback call(
  extension :: t(),
  Grax.Id.Schema.t(),
  variables :: map(),
  opts :: keyword()
) ::
  {:ok, Grax.Id.Schema.t()} | {:error, any()}

init(t, opts)

@callback init(Grax.Id.Schema.t(), opts :: keyword()) :: Grax.Id.Schema.t()

Functions

extension_opt(extension, opts)

install(id_schema, extensions)