pubsub

package
v0.0.0-...-7604275 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provider = wire.NewSet(NewPubSub)

Functions

This section is empty.

Types

type PubSub

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

func NewPubSub

func NewPubSub(brokers []string) *PubSub

func (*PubSub) PublishMessage

func (w *PubSub) PublishMessage(topic string, content []byte) error

func (*PubSub) Subscribe

func (w *PubSub) Subscribe(topic string) (<-chan *message.Message, error)

Jump to

Keyboard shortcuts

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