grpc: google.golang.org/grpc/xds/internal Index | Files | Directories

package internal

import "google.golang.org/grpc/xds/internal"

Index

Package Files

internal.go

type LBConfig Uses

type LBConfig struct {
    serviceconfig.LoadBalancingConfig
    // BalancerName represents the load balancer to use.
    BalancerName string
    // ChildPolicy represents the load balancing config for the child policy.
    ChildPolicy *LoadBalancingConfig
    // FallBackPolicy represents the load balancing config for the fallback.
    FallBackPolicy *LoadBalancingConfig
}

LBConfig represents the loadBalancingConfig section of the service config for xDS balancers.

func (*LBConfig) MarshalJSON Uses

func (l *LBConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns a JSON encoding of l.

func (*LBConfig) UnmarshalJSON Uses

func (l *LBConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON parses the JSON-encoded byte slice in data and stores it in l. When unmarshalling, we iterate through the childPolicy/fallbackPolicy lists and select the first LB policy which has been registered.

type LoadBalancingConfig Uses

type LoadBalancingConfig struct {
    Name   string
    Config json.RawMessage
}

LoadBalancingConfig represents a single load balancing config, stored in JSON format.

func (*LoadBalancingConfig) MarshalJSON Uses

func (l *LoadBalancingConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns a JSON encoding of l.

func (*LoadBalancingConfig) UnmarshalJSON Uses

func (l *LoadBalancingConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON parses the JSON-encoded byte slice in data and stores it in l.

type Locality Uses

type Locality struct {
    Region  string
    Zone    string
    SubZone string
}

Locality is xds.Locality without XXX fields, so it can be used as map keys.

xds.Locality cannot be map keys because one of the XXX fields is a slice.

This struct should only be used as map keys. Use the proto message directly in all other places.

func (Locality) String Uses

func (lamk Locality) String() string

func (Locality) ToProto Uses

func (lamk Locality) ToProto() *basepb.Locality

ToProto convert Locality to the proto representation.

Directories

PathSynopsis
balancerPackage balancer contains xds balancer implementation.
balancer/edsbalancerPackage edsbalancer implements a balancer to handle EDS responses.
balancer/lrsPackage lrs implements load reporting service for xds balancer.
balancer/orcaPackage orca implements Open Request Cost Aggregation.
clientPackage client contains the implementation of the xds client used by grpc-lb-v2.
proto/envoy/api/v2/auth/cert
proto/envoy/api/v2/cds
proto/envoy/api/v2/cluster/circuit_breaker
proto/envoy/api/v2/cluster/outlier_detection
proto/envoy/api/v2/core/address
proto/envoy/api/v2/core/base
proto/envoy/api/v2/core/config_source
proto/envoy/api/v2/core/grpc_service
proto/envoy/api/v2/core/health_check
proto/envoy/api/v2/core/protocol
proto/envoy/api/v2/discovery
proto/envoy/api/v2/eds
proto/envoy/api/v2/endpoint/endpoint
proto/envoy/api/v2/endpoint/load_report
proto/envoy/service/discovery/v2/ads
proto/envoy/service/load_stats/v2/lrs
proto/envoy/type/percent
proto/envoy/type/range
proto/udpa/data/orca/v1/orca_load_report
proto/validate
resolverPackage resolver implements the xds resolver.

Package internal imports 5 packages (graph) and is imported by 3 packages. Updated 2019-10-18. Refresh now. Tools for package owners.