broker

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrainConnection

func DrainConnection() broker.Option

func NewBroker

func NewBroker(opts ...broker.Option) broker.Broker

func Options

func Options(opts natsGo.Options) broker.Option

func WithDeliverAll

func WithDeliverAll() broker.SubscribeOption

func WithDeliverLast

func WithDeliverLast() broker.SubscribeOption

func WithDeliverNew

func WithDeliverNew() broker.SubscribeOption

func WithHeaders

func WithHeaders(h map[string][]string) broker.PublishOption

func WithJetStream

func WithJetStream(streamCnf natsGo.StreamConfig) broker.Option

Types

type MessageCarrier

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

func NewMessageCarrier

func NewMessageCarrier(msg *natsGo.Msg) MessageCarrier

func (MessageCarrier) Get

func (c MessageCarrier) Get(key string) string

func (MessageCarrier) Keys

func (c MessageCarrier) Keys() []string

func (MessageCarrier) Set

func (c MessageCarrier) Set(key, val string)

Jump to

Keyboard shortcuts

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