Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Latest commit

 

History

History
113 lines (53 loc) · 2.26 KB

erlwitness_lobby.md

File metadata and controls

113 lines (53 loc) · 2.26 KB

Module erlwitness_lobby

Behaviours: gen_server.

Function Index

is_entity_watched/1
is_entity_watched_by/2
start_link/0 Starts the server.
unwatch/2
unwatch_by_pid/1
watch/2
watchers_local_lookup/1

Function Details

is_entity_watched/1


is_entity_watched(Entity::erlwitness:entity()) -> boolean()



is_entity_watched_by/2


is_entity_watched_by(Entity::erlwitness:entity(), WatcherPid::pid()) -> boolean()



start_link/0


start_link() -> {ok, Pid} | ignore | {error, Error}



Starts the server

unwatch/2


unwatch(Entity::erlwitness:entity(), WatcherPid::pid()) -> ok



unwatch_by_pid/1


unwatch_by_pid(WatcherPid::pid()) -> ok



watch/2


watch(Entity::erlwitness:entity(), WatcherPid::pid()) -> boolean()



watchers_local_lookup/1


watchers_local_lookup(Entity::erlwitness:entity()) -> [pid()]