internal

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package internal contains orca-internal code, for testing purposes and to avoid polluting the godoc of the top-level orca package.

Index

Constants

View Source
const TrailerMetadataKey = "endpoint-load-metrics-bin"

TrailerMetadataKey is the key in which the per-call backend metrics are transmitted.

Variables

View Source
var AllowAnyMinReportingInterval any // func(*ServiceOptions)

AllowAnyMinReportingInterval prevents clamping of the MinReportingInterval configured via ServiceOptions, to a minimum of 30s.

For testing purposes only.

View Source
var DefaultBackoffFunc = ibackoff.DefaultExponential.Backoff

DefaultBackoffFunc is used by the producer to control its backoff behavior.

For testing purposes only.

Functions

func ToLoadReport added in v1.56.0

func ToLoadReport(md metadata.MD) (*v3orcapb.OrcaLoadReport, error)

ToLoadReport unmarshals a binary encoded [ORCA LoadReport] protobuf message from md and returns the corresponding struct. The load report is expected to be stored as the value for key "endpoint-load-metrics-bin".

If no load report was found in the provided metadata, if multiple load reports are found, or if the load report found cannot be parsed, an error is returned.

[ORCA LoadReport]: (https://github.com/cncf/xds/blob/main/xds/data/orca/v3/orca_load_report.proto#L15)

Types

This section is empty.

Jump to

Keyboard shortcuts

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