View Source Haystack.Index.Attr behaviour (Haystack v0.1.0)

A behaviour for defining a store attr.

Link to this section Summary

Callbacks

Delete an attr.

Insert an attr.

The attr key.

Functions

Return the default attrs.

Link to this section Types

Link to this section Callbacks

Delete an attr.

Insert an attr.

@callback key(opts()) :: tuple()

The attr key.

Link to this section Functions

@spec default() :: %{
  insert: [{module(), Keyword.t()}],
  delete: [{module(), Keyword.t()}]
}

Return the default attrs.