tinypubsub

package
v0.0.0-...-db7d511 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: MIT Imports: 2 Imported by: 0

README

This is a tiny implementation of PubSub. It is mainly used for testing, but if you want to build a monolith application, and skip 3:rd party message queues, then you could hook this up.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TinyPubSub

type TinyPubSub struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewTinyPubSub

func NewTinyPubSub() *TinyPubSub

func (*TinyPubSub) Close

func (tps *TinyPubSub) Close() error

func (*TinyPubSub) Pub

func (tps *TinyPubSub) Pub(topic string, data []byte) error

func (*TinyPubSub) PubFork

func (tps *TinyPubSub) PubFork(topic string, data []byte) error

func (*TinyPubSub) Sub

func (tps *TinyPubSub) Sub(topic string, handler remote.SubHandler) error

Jump to

Keyboard shortcuts

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