nats

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsJsConsumer added in v0.0.17

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

func NewNatsJsConsumer added in v0.0.17

func NewNatsJsConsumer(cfg *messaging.BrokerConfig, subCfg *messaging.NatsJsConsumerConfig, logger log.Logger) (*NatsJsConsumer, func(), error)

func (*NatsJsConsumer) Run added in v0.0.17

func (c *NatsJsConsumer) Run(ctx context.Context) error

type NatsJsPublisher

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

func NewNatsJsPublisher

func NewNatsJsPublisher(cfg *messaging.BrokerConfig, logger log.Logger) (*NatsJsPublisher, func(), error)

func (*NatsJsPublisher) Publish

func (n *NatsJsPublisher) Publish(topic string, data []byte) error

func (*NatsJsPublisher) PublishEvent

func (n *NatsJsPublisher) PublishEvent(topic string, event *cloudevents.Event) error

func (*NatsJsPublisher) PublishMessage

func (n *NatsJsPublisher) PublishMessage(topic string, msg *message.Message) error

Jump to

Keyboard shortcuts

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