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 ¶
const (
// MethodPrefix identifies RPCs from extensions compiled against the legacy package.
MethodPrefix = "/azdext."
)
Variables ¶
This section is empty.
Functions ¶
func IsLegacyMethod ¶
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 ¶
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.