Movatterモバイル変換


[0]ホーム

URL:


priority

package
v1.77.0Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License:Apache-2.0Imports:19Imported by:0

Details

Repository

github.com/grpc/grpc-go

Links

Documentation

Overview

Package priority implements the priority balancer.

This balancer will be kept in internal until we use it in the xds balancers,and are confident its functionalities are stable. It will then be exportedfor more users.

Index

Constants

View Source
const Name = "priority_experimental"

Name is the name of the priority balancer.

Variables

View Source
var (// ErrAllPrioritiesRemoved is returned by the picker when there's no priority available.ErrAllPrioritiesRemoved =errors.New("no priority is provided, all priorities are removed")// DefaultPriorityInitTimeout is the timeout after which if a priority is// not READY, the next will be started. It's exported to be overridden by// tests.DefaultPriorityInitTimeout = 10 *time.Second)
View Source
var DefaultSubBalancerCloseTimeout = 15 *time.Minute

DefaultSubBalancerCloseTimeout is defined as a variable instead of const fortesting.

Functions

This section is empty.

Types

typeChild

type Child struct {Config                     *internalserviceconfig.BalancerConfig `json:"config,omitempty"`IgnoreReresolutionRequestsbool                                  `json:"ignoreReresolutionRequests,omitempty"`}

Child is a child of priority balancer.

typeLBConfig

type LBConfig struct {serviceconfig.LoadBalancingConfig `json:"-"`// Children is a map from the child balancer names to their configs. Child// names can be found in field Priorities.Children map[string]*Child `json:"children,omitempty"`// Priorities is a list of child balancer names. They are sorted from// highest priority to low. The type/config for each child can be found in// field Children, with the balancer name as the key.Priorities []string `json:"priorities,omitempty"`}

LBConfig represents priority balancer's config.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp