subscriber

package
v1.15.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	AppID           string
	Namespace       string
	Resiliency      resiliency.Provider
	TracingSpec     *config.TracingSpec
	IsHTTP          bool
	Channels        *channels.Channels
	GRPC            *manager.Manager
	CompStore       *compstore.ComponentStore
	Adapter         rtpubsub.Adapter
	AdapterStreamer rtpubsub.AdapterStreamer
}

type Subscriber

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

func New

func New(opts Options) *Subscriber

func (*Subscriber) InitProgramaticSubscriptions

func (s *Subscriber) InitProgramaticSubscriptions(ctx context.Context) error

func (*Subscriber) ReloadDeclaredAppSubscription

func (s *Subscriber) ReloadDeclaredAppSubscription(name, pubsubName string) error

func (*Subscriber) ReloadPubSub

func (s *Subscriber) ReloadPubSub(name string) error

func (*Subscriber) Run

func (s *Subscriber) Run(ctx context.Context) error

func (*Subscriber) StartAppSubscriptions

func (s *Subscriber) StartAppSubscriptions() error

func (*Subscriber) StartStreamerSubscription

func (s *Subscriber) StartStreamerSubscription(key string) error

func (*Subscriber) StopAllSubscriptionsForever

func (s *Subscriber) StopAllSubscriptionsForever()

func (*Subscriber) StopAppSubscriptions

func (s *Subscriber) StopAppSubscriptions()

func (*Subscriber) StopPubSub

func (s *Subscriber) StopPubSub(name string)

func (*Subscriber) StopStreamerSubscription

func (s *Subscriber) StopStreamerSubscription(pubsubName, key string)

Jump to

Keyboard shortcuts

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