Packages

A protocol-generic Viewstamped Replication runtime for Elixir

Current section

Files

Jump to
viewstamped_replication lib viewstamped_replication member.ex
Raw

lib/viewstamped_replication/member.ex

defmodule ViewstampedReplication.Member do
@moduledoc """
A replica in an ordered VSR configuration.
"""
@enforce_keys [:id, :endpoint]
defstruct [:id, :endpoint]
@type id :: term()
@type endpoint :: term()
@type t :: %__MODULE__{id: id(), endpoint: endpoint()}
end