ViewstampedReplication.Transport.Local (viewstamped_replication v0.1.0)

Copy Markdown View Source

Deterministic same-VM delivery through the VSR registry.

Tests may provide a :deliver function to queue, drop, duplicate, or delay messages without changing the protocol runtime.

Summary

Types

t()

@type t() :: %ViewstampedReplication.Transport.Local{
  deliver: (pid(), term() -> :ok | {:error, term()}) | nil,
  endpoints: map(),
  registry: atom()
}

Functions

new(opts \\ [])

@spec new(keyword()) :: t()