subscriber

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventSubscriber

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

func NewSubscriber

func NewSubscriber(ctx context.Context, logger *zap.Logger, clientName string) (*EventSubscriber, error)

func (*EventSubscriber) Close

func (s *EventSubscriber) Close() error

func (*EventSubscriber) Subscribe

func (s *EventSubscriber) Subscribe(ctx context.Context, groupName string, dlqSubject string, invoker eventing.HandlerInvoker) error

Subscribe to a NATS subject and handle incoming messages. process incoming messages using the provided handler in strict order

type Subscriber

type Subscriber interface {
	Subscribe(ctx context.Context, groupName, dlqSubject string, invoker eventing.HandlerInvoker) error
	Close() error
}

Jump to

Keyboard shortcuts

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