pubsubmutex

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 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 PubSubMutex

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

func New

func New(capacity int) *PubSubMutex

func (*PubSubMutex) SendReceive

func (p *PubSubMutex) SendReceive(sendTopic string, receiveTopic string,
	sendMsg interface{},
	timeoutMs int) (result interface{})

func (*PubSubMutex) Shutdown

func (p *PubSubMutex) Shutdown()

func (*PubSubMutex) Start

func (p *PubSubMutex) Start()

func (*PubSubMutex) Sub

func (p *PubSubMutex) Sub(subTopic string) (result <-chan interface{})

func (*PubSubMutex) SubAsync

func (p *PubSubMutex) SubAsync(subTopic string) (result <-chan interface{})

func (*PubSubMutex) Use

func (p *PubSubMutex) Use(callback func(*pubsub.PubSub))

Jump to

Keyboard shortcuts

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