ps_nats

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(url string) (*nats.Conn, error)

func EnsureStream

func EnsureStream(ctx context.Context, js jetstream.JetStream, name string, subjects ...string) error

func RunConsumer

func RunConsumer(
	ctx context.Context,
	drainingCtx context.Context,
	jsConsumer jetstream.Consumer,
	parallelism int,
	handle func(context.Context, jetstream.Msg) error,
) error

Types

type Publisher

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

func NewPublisher

func NewPublisher(js jetstream.JetStream) *Publisher

func (*Publisher) Publish

func (p *Publisher) Publish(ctx context.Context, message ps_event.OutboxMessage) error

Jump to

Keyboard shortcuts

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