consumer

package
v0.0.0-...-25f3c82 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MultipleFilterSubjects = Approach("multiple-filter-subjects")
	ManyConsumers          = Approach("many-consumers")
	Wildcard               = Approach("wildcard")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Approach

type Approach string

func Approaches

func Approaches() []Approach

func NewApproach

func NewApproach(name string) Approach

type Config

type Config struct {
	NatsURL  string
	Stream   string
	ClientID string
	Approach Approach
	Realms   []string
	Suffixes []string
}

type Consumer

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

func New

func New(config Config, totalRealms int) *Consumer

func (*Consumer) NumMessages

func (c *Consumer) NumMessages() int

func (*Consumer) Run

func (c *Consumer) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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