dispatcher

package
v0.0.0-...-82c3d49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddListenerToTopic

func AddListenerToTopic(l *types.Listener)

AddListenerToTopic will add a listener to one of the topic's arrays so it can be notified since that moment of new messages

func DispatchMessage

func DispatchMessage(m *types.Message)

DispatchMessage takes a message and inserts it into the generic messages channel that will distribute it to the registered servers

func GetAllListeners

func GetAllListeners() []types.Listener

GetAllListeners will return an array with all listeners for each topic

func GetAllTopics

func GetAllTopics() []string

GetAllTopics will return an array of strings with the registered topic names

func GetDispatcher

func GetDispatcher() *dispatcher

func RemoveListener

func RemoveListener(l *types.Listener) error

RemoveListener takes a types.Listener and a topic and removes the listener from the the specified topic

func StartDispatcher

func StartDispatcher()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL