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

subscription

package
v1.17.17 Latest Latest
Warning

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

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

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