| add_peer/3 | Contact a remote em_pop node and register it as a known peer. |
| gossip_tick/1 | Trigger one gossip tick synchronously. |
| id/1 | Return the unique binary ID of this node. |
| peers/1 | Return all currently known peers. |
| peers_for/3 | Return top-K peers ordered by cosine similarity to QueryVec. |
| start_link/1 | Start a population protocol node. |
| stop/1 | Stop a node and free its port. |
| trust/2 | Return the trust score for a peer (0.0 = unknown, 1.0 = fully trusted). |
| vector/1 | Return the capability vector this node was started with. |
add_peer(Node::pid(), Host::inet:hostname(), Port::inet:port_number()) -> ok | {error, term()}
Contact a remote em_pop node and register it as a known peer.
gossip_tick(Node::pid()) -> ok
Trigger one gossip tick synchronously.
id(Node::pid()) -> binary()
Return the unique binary ID of this node.
peers(Node::pid()) -> [map()]
Return all currently known peers.
peers_for(Node::pid(), QueryVec::binary(), K::pos_integer()) -> [{map(), float()}]
Return top-K peers ordered by cosine similarity to QueryVec.
start_link(Opts::map()) -> {ok, pid()} | {error, term()}
Start a population protocol node.
stop(Node::pid()) -> ok
Stop a node and free its port.
trust(Node::pid(), PeerId::binary()) -> float()
Return the trust score for a peer (0.0 = unknown, 1.0 = fully trusted).
vector(Node::pid()) -> binary()
Return the capability vector this node was started with.
Generated by EDoc