mb

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNatsPublisher

func NewNatsPublisher(nc *nats.Conn) *natsPublisher

func NewNatsServer

func NewNatsServer() *natsServer

func NewNatsSubscriber

func NewNatsSubscriber(nc *nats.Conn) *natsSubscriber

Types

type PubOpts

type PubOpts func(o *options)

type Publisher

type Publisher interface {
	Publish(stream, subj string, sender interface{}, o ...PubOpts) (interface{}, error)
}

type SubRec added in v1.16.1

type SubRec func(o *options)

type Subscriber

type Subscriber interface {
	Delivery(receivers ...SubRec) error

	Subscribe(stream, subj, cons string, cmd endpoint.Endpoint) SubRec

	Close() error
}

Jump to

Keyboard shortcuts

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