nats

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeNATS

func InitializeNATS(ctx context.Context, config c.NatsConfig, logger l.Logger) (jetstream.JetStream, *natsgo.Conn, *server.Server)

Types

type Option added in v0.2.11

type Option func(*options)

func WithConnectOptions added in v0.2.11

func WithConnectOptions(opts ...natsgo.Option) Option

func WithConnection added in v0.2.11

func WithConnection(conn *natsgo.Conn, opts ...jetstream.JetStreamOpt) Option

func WithJetStream added in v0.2.11

func WithJetStream(js jetstream.JetStream) Option

func WithJetStreamOptions added in v0.2.11

func WithJetStreamOptions(opts ...jetstream.JetStreamOpt) Option

func WithURL added in v0.2.11

func WithURL(url string, opts ...natsgo.Option) Option

type Runtime added in v0.2.11

type Runtime struct {
	JetStream jetstream.JetStream
	Conn      *natsgo.Conn
	Server    *server.Server
	// contains filtered or unexported fields
}

func Start added in v0.2.11

func Start(ctx context.Context, config c.NatsConfig, logger l.Logger, runtimeOpts ...Option) (*Runtime, error)

func (*Runtime) Close added in v0.2.11

func (r *Runtime) Close()

Jump to

Keyboard shortcuts

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