Documentation ¶
Index ¶
Constants ¶
View Source
const ( IncomingMessageTopic = "from-clients" ClientHubTopic = "client-hub" SessionsTopic = "sessions-hub" GamesTopic = "games-hub" QuizzesTopic = "quizzes" )
topics
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageHub ¶
type MessageHubImpl ¶
type MessageHubImpl struct {
// contains filtered or unexported fields
}
func InitMessageHub ¶
func InitMessageHub() *MessageHubImpl
func (*MessageHubImpl) Close ¶
func (mh *MessageHubImpl) Close()
func (*MessageHubImpl) GetTopic ¶
func (mh *MessageHubImpl) GetTopic(name string) chan interface{}
func (*MessageHubImpl) Send ¶
func (mh *MessageHubImpl) Send(topicname string, msg interface{})
Click to show internal directories.
Click to hide internal directories.