mb

package
v0.0.0-...-a008f90 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNats

func NewNats(url string, options ...nats.Option) (*nats.Conn, error)

func NewNatsStreaming

func NewNatsStreaming(clusterID string, clientID string, options []stan.Option) (stan.Conn, error)

Types

type MessageBroker

type MessageBroker interface {
	Subscribe(topic string, handler func(message []byte)) error
	Publish(topic string, message []byte) error
}

MessageBroker defines message broker

Jump to

Keyboard shortcuts

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