grapevine v0.2.0 Grapevine.Gossip behaviour View Source

This module is the interface for custom gossip protocols

The module implements basic behaviour for a gossip protocol

Link to this section Summary

Link to this section Functions

Link to this function

add(name, id, value, timeout \\ 5000) View Source
add(atom(), binary(), any(), non_neg_integer()) :: :ok | {:error, term()}

Link to this section Callbacks

Link to this callback

do_init(map, keyword) View Source
do_init(map(), keyword()) :: {:ok, map()}

Link to this callback

filter(map) View Source
filter(map()) :: map()

Link to this callback

merge(binary, any, map) View Source
merge(binary(), any(), map()) :: map()

Link to this callback

neighbours(map) View Source
neighbours(map()) :: [node(), ...]

Link to this callback

push(map, pid, map) View Source
push(map(), pid(), map()) :: map()