nats

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPubSub

func NewPubSub(cfg conf.Instance) (pubsub.PubSub, error)

Types

type ConsumerStream

type ConsumerStream struct {
	Consumer string
	Stream   string
}

type NATSPubSub added in v1.0.6

type NATSPubSub interface {
	pubsub.PubSub
	AddStream(name string, raw json.RawMessage) error
	AddConsumer(name string, stream string, raw json.RawMessage) error
	PullSubscribe(consumer string, stream string, callback pubsub.MessageHandler) error
}

func NewNATSPubSub added in v1.0.6

func NewNATSPubSub(cfg conf.Instance) (NATSPubSub, error)

Jump to

Keyboard shortcuts

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