Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddListenerToTopic ¶
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 ¶
DispatchMessage takes a message and inserts it into the generic messages channel that will distribute it to the registered servers
func GetAllListeners ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.