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

todo

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBulkResponseEntry

func AddBulkResponseEntry(bulkResponses *[]contribpubsub.BulkSubscribeResponseEntry, entryId string, err error)

func EndSpans

func EndSpans(spans []trace.Span)

func PopulateAllBulkResponsesWithError

func PopulateAllBulkResponsesWithError(bulkMsg *contribpubsub.BulkMessage,
	bulkResponses *[]contribpubsub.BulkSubscribeResponseEntry, err error,
)

func PopulateBulkSubcribedMessage

func PopulateBulkSubcribedMessage(msgE *contribpubsub.BulkMessageEntry, event interface{},
	routePathBulkMessageMap *map[string]BulkSubscribedMessage,
	rPath string, i int, msg *contribpubsub.BulkMessage, isCloudEvent bool, psName string, contentType string, namespacedConsumer bool, namespace string,
)

func PopulateBulkSubscribeResponsesWithError

func PopulateBulkSubscribeResponsesWithError(psm *BulkSubscribedMessage,
	bulkResponses *[]contribpubsub.BulkSubscribeResponseEntry, err error,
)

func ReportBulkSubDiagnostics

func ReportBulkSubDiagnostics(ctx context.Context, topic string, bulkSubDiag *BulkSubIngressDiagnostics)

func SetBulkResponseEntry

func SetBulkResponseEntry(bulkResponses *[]contribpubsub.BulkSubscribeResponseEntry, i int, entryId string, err error)

func ValidateEntryId

func ValidateEntryId(entryId string, i int) error

Types

type BulkSubIngressDiagnostics

type BulkSubIngressDiagnostics struct {
	StatusWiseDiag map[string]int64
	Elapsed        float64
	RetryReported  bool
}

BulkSubIngressDiagnostics holds diagnostics information for bulk subscribe ingress.

func NewBulkSubIngressDiagnostics

func NewBulkSubIngressDiagnostics() BulkSubIngressDiagnostics

type BulkSubscribeCallData

type BulkSubscribeCallData struct {
	BulkResponses   *[]contribpubsub.BulkSubscribeResponseEntry
	BulkSubDiag     *BulkSubIngressDiagnostics
	EntryIdIndexMap *map[string]int //nolint:stylecheck
	PsName          string
	Topic           string
}

BulkSubscribeCallData holds data for a bulk subscribe call.

type BulkSubscribeResiliencyRes

type BulkSubscribeResiliencyRes struct {
	Entries  []contribpubsub.BulkSubscribeResponseEntry
	Envelope map[string]any
}

type BulkSubscribedMessage

type BulkSubscribedMessage struct {
	PubSubMessages []Message
	Topic          string
	Metadata       map[string]string
	Pubsub         string
	Path           string
	Length         int
}

BulkSubscribedMessage contains all the essential information related to a bulk subscribe message.

type Message

type Message struct {
	CloudEvent map[string]interface{}
	RawData    *pubsub.BulkSubscribeMessageItem
	Entry      *contribpubsub.BulkMessageEntry
}

Message contains all the essential information related to a particular entry. This need to be maintained as a separate struct, as we need to filter out messages and their related info doing retries of resiliency support.

Jump to

Keyboard shortcuts

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