GroundPlane.Contracts.Fence.Epoch (GroundPlane Contracts v0.1.0)

Copy Markdown View Source

Epoch facts for a fenced lease and materialization.

Summary

Types

t()

@type t() :: %GroundPlane.Contracts.Fence.Epoch{
  epoch: non_neg_integer(),
  rotation_epoch: non_neg_integer() | nil
}

Functions

new(attrs)

@spec new(map() | keyword()) :: {:ok, t()} | {:error, term()}

scope_checks()

@spec scope_checks() :: keyword(atom())

to_map(epoch)

@spec to_map(t()) :: map()