View Source Kadena.Chainweb.Peer (Kadena v0.17.1)

Peer struct definition.

Link to this section Summary

Link to this section Types

@type address() :: map() | nil
@type error() :: {:error, Keyword.t()}
@type id() :: String.t() | nil
@type result() :: t() | error()
@type t() :: %Kadena.Chainweb.Peer{address: address(), id: id()}
@type validation() :: {:ok, map()} | error()

Link to this section Functions

Link to this function

set_address(peer, address)

View Source
@spec set_address(peer :: t(), address :: address()) :: result()
@spec set_id(peer :: t(), id :: id()) :: result()