View Source nova_channel (nova v0.9.4)

Channels is a pubsub system for Nova. It uses the pg module.

Link to this section Summary

Link to this section Functions

Link to this function

broadcast(Channel, Topic, Message)

View Source
-spec broadcast(Channel :: atom(), Topic :: list() | binary(), Message :: any()) -> ok.
Link to this function

get_local_members(Channel)

View Source
-spec get_local_members(Channel :: atom()) -> [pid()].
-spec get_members(Channel :: atom()) -> [pid()].
-spec join(Channel :: atom()) -> ok.
-spec join(Channel :: atom(), Pid :: pid()) -> ok.
-spec leave(Channel :: atom()) -> ok | not_joined.
-spec leave(Channel :: atom(), Pid :: pid()) -> ok | not_joined.
Link to this function

local_broadcast(Channel, Topic, Message)

View Source
-spec local_broadcast(Channel :: atom(), Topic :: list() | binary(), Message :: any()) -> ok.
-spec start() -> ok.