pubsub

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	ShutDown()
	Close(string)
	AddSubscribe(string, chan interface{})
	UnSubscribe(string, chan interface{})
	TryPublish(string, interface{})
	TrySendOnce(ch chan interface{}, data interface{})
}

func GetSubscribeManager

func GetSubscribeManager() Manager

func InitSubscribeManager

func InitSubscribeManager() Manager

type ManagerImpl

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

func (*ManagerImpl) AddSubscribe

func (c *ManagerImpl) AddSubscribe(key string, ch chan interface{})

func (*ManagerImpl) Close

func (c *ManagerImpl) Close(key string)

func (*ManagerImpl) ShutDown

func (c *ManagerImpl) ShutDown()

func (*ManagerImpl) TryPublish

func (c *ManagerImpl) TryPublish(key string, data interface{})

func (*ManagerImpl) TrySendOnce

func (c *ManagerImpl) TrySendOnce(ch chan interface{}, data interface{})

func (*ManagerImpl) UnSubscribe

func (c *ManagerImpl) UnSubscribe(key string, ch chan interface{})

Jump to

Keyboard shortcuts

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