Module em_pop_node

Behaviours: gen_server.

Function Index

add_peer/3
get_id/1
get_peers/1
get_trust/2
get_vector/1
gossip_tick/1
handle_call/3
handle_cast/2
handle_gossip/2
handle_info/2
init/1
peers_for/3
start_link/1
terminate/2

Function Details

add_peer/3

add_peer(Pid::pid(), Host::string(), Port::inet:port_number()) -> ok | {error, term()}

get_id/1

get_id(Pid::pid()) -> binary()

get_peers/1

get_peers(Pid::pid()) -> [map()]

get_trust/2

get_trust(Pid::pid(), PeerId::binary()) -> float()

get_vector/1

get_vector(Pid::pid()) -> binary()

gossip_tick/1

gossip_tick(Pid::pid()) -> ok

handle_call/3

handle_call(Msg, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_gossip/2

handle_gossip(Pid::pid(), Payload::map()) -> {ok, map()} | {error, term()}

handle_info/2

handle_info(Msg, State) -> any()

init/1

init(Opts) -> any()

peers_for/3

peers_for(Pid::pid(), Vec::binary(), K::pos_integer()) -> [{map(), float()}]

start_link/1

start_link(Opts) -> any()

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc