messagequeue

package
v0.0.0-...-f1a5848 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotificationStream

func NewNotificationStream(js jetstream.JetStream)

func NewUserEventConsumerInfra

func NewUserEventConsumerInfra(pgx *pgxpool.Pool, n Nats, logger zerolog.Logger) event.UserEventConsumer

Types

type Nats

type Nats interface {
	CreateOrUpdateNewConsumer(ctx context.Context, streamName string, jsConfig *jetstream.ConsumerConfig) (jetstream.Consumer, error)
	CreateOrUpdateNewStream(ctx context.Context, jsConfig *jetstream.StreamConfig) error
	Publish(ctx context.Context, subject string, payload []byte) (*jetstream.PubAck, error)
	GetJetStream() jetstream.JetStream
}

func NewNatsInfrastructure

func NewNatsInfrastructure(nc *nats.Conn, logger zerolog.Logger, js jetstream.JetStream) Nats

Jump to

Keyboard shortcuts

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