nats

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteMsg added in v0.3.0

func WriteMsg(ctx context.Context, m binding.Message, writer io.ReaderFrom, transformers ...binding.Transformer) error

Types

type Driver added in v0.6.0

type Driver struct {
	JetStream nats.JetStreamContext
}

func Open

func Open(url string, opts ...nats.Option) *Driver

func (*Driver) Client added in v0.6.0

func (n *Driver) Client() nats.JetStreamContext

func (*Driver) Close added in v0.6.0

func (n *Driver) Close() error

func (*Driver) Consumer added in v0.6.0

func (n *Driver) Consumer(topic string, subscriptionName string) (equeue.Consumer, error)

func (*Driver) Send added in v0.6.0

func (n *Driver) Send(ctx context.Context, topic string, msg binding.Message) error

Jump to

Keyboard shortcuts

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