legacybridge

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package legacybridge provides temporary wire compatibility for extension binaries compiled against the pre-versioning azdext protobuf package.

TEMPORARY: Remove this entire package, its two server interceptor hooks, and ExtensionLegacyGrpcCallCount when extension.grpc.legacy_call_count remains zero for a full stable release cycle and all supported extensions have migrated to versioned contracts.

Index

Constants

View Source
const (
	// MethodPrefix identifies RPCs from extensions compiled against the legacy package.
	MethodPrefix = "/azdext."
)

Variables

This section is empty.

Functions

func IsLegacyMethod

func IsLegacyMethod(fullMethod string) bool

IsLegacyMethod reports whether a full gRPC method uses the frozen legacy package.

func Register

func Register(registrar grpc.ServiceRegistrar, implementations map[string]any) error

Register adds the frozen azdext service names using the stable service handlers.

func StreamUsageInterceptor

func StreamUsageInterceptor() grpc.StreamServerInterceptor

StreamUsageInterceptor counts streams opened through the temporary legacy bridge.

func TranslateStatusDetails

func TranslateStatusDetails(err error) error

TranslateStatusDetails rewrites stable contract-local Any type URLs for legacy clients. The stable and legacy detail messages have the same frozen wire schema.

func UnaryUsageInterceptor

func UnaryUsageInterceptor() grpc.UnaryServerInterceptor

UnaryUsageInterceptor counts calls through the temporary legacy bridge.

Types

This section is empty.

Jump to

Keyboard shortcuts

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