subscription

package
v1.18.11 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 26 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

View Source
const (
	BinaryCloudEventHeaderPrefix = "ce_"
	DefaultCloudEventContentType = "application/json"
	ContentTypeMetadataKey       = "content-type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	AppID           string
	Namespace       string
	PubSubName      string
	Topic           string
	PubSub          *rtpubsub.PubsubItem
	Resiliency      resiliency.Provider
	TraceSpec       *config.TracingSpec
	Route           rtpubsub.Subscription
	GRPC            *manager.Manager
	Adapter         rtpubsub.Adapter
	AdapterStreamer rtpubsub.AdapterStreamer
	ConnectionID    rtpubsub.ConnectionID
	Postman         postman.Interface
}

type Subscription

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

func New

func New(opts Options) (*Subscription, error)

func (*Subscription) Stop

func (s *Subscription) Stop(err ...error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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