pixie_ets v1.0.0 Pixie.ETS.Backend

Implements the interface needed by Pixie to call functions in the backend.

Summary

Functions

client_subscribed?(client_id, channel_name)

See Pixie.ETS.Subscription.exists?/2.

dequeue_for(client_id)

See Pixie.ETS.Queue.dequeue/1.

destroy_channel(channel_name)

See Pixie.ETS.Channel.destroy/1.

destroy_client(client_id)

See Pixie.ETS.Client.destroy/1.

destroy_client(client_id, reason)

See Pixie.ETS.Client.destroy/2.

destroy_transport(transport_id, pid)

See Pixie.ETS.Transport.destroy/2.

generate_namespace(length)

See Pixie.ETS.Namespace.generate/1.

get_channel(channel_name)

See Pixie.ETS.Channel.get/1.

get_client(client_id)

See Pixie.ETS.Client.get/1.

get_transport(transport_id)

See Pixie.ETS.Transport.get/1.

list_channels()

See Pixie.ETS.Channel.list/0.

list_clients()

See Pixie.ETS.Client.list/0.

list_transports()

See Pixie.ETS.Transport.list/0.

match_channels(channel_name)

See Pixie.ETS.Channel.match/1.

ping_client(client_id)

See Pixie.ETS.Client.ping/1.

queue_for(client_id, messages)

See Pixie.ETS.Queue.queue/2.

release_namespace(namespace)

See Pixie.ETS.Namespace.release/1.

store_channel(channel_name)

See Pixie.ETS.Channel.store/1.

store_client(client_id, client)

See Pixie.ETS.Client.store/2.

store_transport(transport_id, transport)

See Pixie.ETS.Transport.store/2.

subscribe(client_id, channel_name)

See Pixie.ETS.Subscription.create/2.

subscribed_to(client_id)

See Pixie.ETS.Subscription.channels_on/1.

subscribers_of(channel_name)

See Pixie.ETS.Subscription.clients_on/1.

unsubscribe(client_id, channel_name)

See Pixie.ETS.Subscription.destroy/2.