messaging

package
v0.0.0-...-7c02c66 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNatsWithOpt

func NewNatsWithOpt(opts ...natsOpt) *natsClientOpt

func WithJetStream

func WithJetStream(jetstream bool) natsOpt

func WithServer

func WithServer(server string) natsOpt

func WithServers

func WithServers(servers ...string) natsOpt

Types

type Message

type Message interface {
	Publish(subject string, msg []byte)
	Subscribe(subject string, callback func(msg []byte))
	SubscribeGroup(subject string, callback func(msg []byte))
}

type NatsWarp

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

func (*NatsWarp) Close

func (n *NatsWarp) Close()

func (*NatsWarp) JetStream

func (n *NatsWarp) JetStream(opts ...nats.JSOpt) (nats.JetStreamContext, error)

Jump to

Keyboard shortcuts

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