View Source AbsintheFieldTelemetry.Backend behaviour (absinthe_field_telemetry v0.1.0)

The backend of AbsintheFieldTelemetry.

Contains details of the callbacks required for a backend.

Summary

Functions

See AbsintheFieldTelemetry.Backend.Ets.get_all_hits/1.

See AbsintheFieldTelemetry.Backend.Ets.get_all_type_hits/1.

See AbsintheFieldTelemetry.Backend.Ets.record_field_hit/2.

See AbsintheFieldTelemetry.Backend.Ets.record_field_hit/3.

See AbsintheFieldTelemetry.Backend.Ets.reset/1.

See AbsintheFieldTelemetry.Backend.Ets.setup/0.

Types

@type field_identifier() :: atom()
@type hits() :: [{path(), integer()}]
@type path() :: [String.t()]
@type schema() :: Absinthe.Schema.t()
@type t() :: module()
@type type_hits() :: [{{type_identifier(), field_identifier()}, integer()}]
@type type_identifier() :: atom()

Callbacks

@callback get_all_hits(schema()) :: hits()
Link to this callback

get_all_type_hits(schema)

View Source
@callback get_all_type_hits(schema()) :: type_hits()
Link to this callback

record_field_hit(schema, path)

View Source
@callback record_field_hit(schema(), path()) :: :ok
Link to this callback

record_field_hit(schema, type_identifier, field_identifier)

View Source
@callback record_field_hit(schema(), type_identifier(), field_identifier()) :: :ok
@callback reset(schema()) :: :ok
@callback setup() :: :ok

Functions

See AbsintheFieldTelemetry.Backend.Ets.get_all_hits/1.

Link to this function

get_all_type_hits(schema)

View Source

See AbsintheFieldTelemetry.Backend.Ets.get_all_type_hits/1.

Link to this function

record_field_hit(schema, path)

View Source

See AbsintheFieldTelemetry.Backend.Ets.record_field_hit/2.

Link to this function

record_field_hit(schema, type_identifier, field_identifier)

View Source

See AbsintheFieldTelemetry.Backend.Ets.record_field_hit/3.

See AbsintheFieldTelemetry.Backend.Ets.reset/1.

See AbsintheFieldTelemetry.Backend.Ets.setup/0.