topics

package
v0.0.0-...-e8184fc Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Topic

type Topic struct {
	// contains filtered or unexported fields
}

TopicsProvider

func NewTopic

func NewTopic(topic string) *Topic

func (*Topic) AddSub

func (t *Topic) AddSub(c *clients.Client)

func (*Topic) CheckTopicAuth

func (t *Topic) CheckTopicAuth(c *clients.Client)

func (*Topic) GetSubs

func (t *Topic) GetSubs() []*clients.Client

type TopicMgr

type TopicMgr struct {
	// contains filtered or unexported fields
}

func NewTopicMgr

func NewTopicMgr() *TopicMgr

func (*TopicMgr) GetSubs

func (t *TopicMgr) GetSubs(topic string) []*clients.Client

func (*TopicMgr) Subscribe

func (t *TopicMgr) Subscribe(topic string, c *clients.Client)

func (*TopicMgr) Unsubscribe

func (t *TopicMgr) Unsubscribe(topic string, c *clients.Client)

Jump to

Keyboard shortcuts

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