nats

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package nats provides NATS adapters for the generic subscriber package.

New code should import this focused adapter path:

import "github.com/InsideGallery/core/queue/generic/subscriber/nats"

subscriber := nats.NewSubscriber(conn)

Compatibility: queue/generic/subscriber/driver remains available for existing consumers. Prefer this package for NATS-specific adapter aliases so the generic subscriber root package does not grow provider-specific names.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = legacy.NATSConfig

Config adapts NATS client configuration to the generic subscriber config contract.

type Message

type Message = legacy.NATSMsg

Message adapts a NATS message to the generic subscriber message contract.

type Subscriber

type Subscriber = legacy.NATSSubscriber

Subscriber adapts a NATS client to the generic subscriber client contract.

func NewSubscriber

func NewSubscriber(conn *client.Client) *Subscriber

NewSubscriber returns a NATS-backed generic subscriber client.

type Subscription

type Subscription = legacy.NATSSubscription

Subscription adapts a NATS subscription to the generic subscriber subscription contract.

Jump to

Keyboard shortcuts

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