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

package edsbalancer

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

Package edsbalancer contains EDS balancer implementation.

Index

Package Files

balancergroup.go config.go eds.go eds_impl.go eds_impl_priority.go logging.go util.go xds_client_wrapper.go xds_old.go

type EDSConfig Uses

type EDSConfig 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
    // Name to use in EDS query.  If not present, defaults to the server
    // name from the target URI.
    EDSServiceName string
    // LRS server to send load reports to.  If not present, load reporting
    // will be disabled.  If set to the empty string, load reporting will
    // be sent to the same server that we obtained CDS data from.
    LrsLoadReportingServerName *string
}

EDSConfig represents the loadBalancingConfig section of the service config for EDS balancers.

func (*EDSConfig) MarshalJSON Uses

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

MarshalJSON returns a JSON encoding of l.

func (*EDSConfig) UnmarshalJSON Uses

func (l *EDSConfig) 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.

Package edsbalancer imports 27 packages (graph) and is imported by 2 packages. Updated 2020-04-05. Refresh now. Tools for package owners.