Minga.Search.IndexGeneration (Minga v0.1.0)

Copy Markdown View Source

Exact source-owned search-index generation shared across editor and renderer workflows.

Summary

Functions

Returns the exact buffer revision represented by this generation.

Creates the next exact generation stamp.

Types

t()

@type t() :: %Minga.Search.IndexGeneration{
  buffer: pid(),
  query_revision: non_neg_integer(),
  sequence: non_neg_integer(),
  token: reference(),
  version: non_neg_integer()
}

Functions

buffer_revision(index_generation)

@spec buffer_revision(t()) :: {non_neg_integer(), non_neg_integer()}

Returns the exact buffer revision represented by this generation.

new(buffer, query_revision, version, sequence)

@spec new(pid(), non_neg_integer(), non_neg_integer(), non_neg_integer()) :: t()

Creates the next exact generation stamp.