messaging

package
v0.0.0-...-bd4b760 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 2 Imported by: 0

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 MessageHub interface {
	Send(topicname string, msg interface{})
	Close()
	GetTopic(name string) chan interface{}
}

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{})

Jump to

Keyboard shortcuts

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