Help us shape the future of Go! Take the 2026 Go Developer Survey

subscriber

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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(subscription *subapi.Subscription, connectionID rtpubsub.ConnectionID) 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(subscription *subapi.Subscription, connectionID rtpubsub.ConnectionID)

Jump to

Keyboard shortcuts

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