package
0.0.0-20200226065818-fe632b36a108
Repository: https://github.com/alipay/sofa-mesh.git
Documentation: pkg.go.dev
# Functions
BuildAddress returns a SocketAddress with the given ip and port or uds.
BuildConfigInfoMetadata builds core.Metadata struct containing the name.namespace of the config, the type, etc.
return a shallow copy cluster.
return a shallow copy ClusterLoadAssignment.
ConvertAddressToCidr converts from string to CIDR proto.
ConvertLocality converts '/' separated locality string to Locality struct.
GetByAddress returns a listener by its address TODO(mostrowski): consider passing map around to save iteration.
GetNetworkEndpointAddress returns an Envoy v2 API `Address` that represents this NetworkEndpoint.
GogoDurationToDuration converts from gogo proto duration to time.duration.
IsHTTPFilterChain returns true if the filter chain contains a HTTP connection manager filter.
IsLocalityEmpty checks if a locality is empty (checking region is good enough, based on how its initialized).
IsProxyVersionGE11 checks whether the given Proxy version is greater than or equals 1.1.
IsXDSMarshalingToAnyEnabled controls whether "marshaling to Any" feature is enabled.
No description provided by the author
LocalityLbWeightNormalize set LocalityLbEndpoints within a cluster with a valid LoadBalancingWeight.
No description provided by the author
MessageToAny converts from proto message to proto Any.
MessageToStruct converts from proto message to proto Struct.
ResolveHostsInNetworksConfig will go through the Gateways addresses for all networks in the config and if it's not an IP address it will try to lookup that hostname and replace it with the IP address in the config.
SortVirtualHosts sorts a slice of virtual hosts by name.
No description provided by the author
# Constants
BlackHoleCluster to catch traffic from routes with unresolved clusters.
IstioMetadataKey is the key under which metadata is added to a route or cluster regarding the virtual service or destination rule used for each.
NoProxyLocality represents the locality associated with a proxy that doesn't have locality settings since all our localities are in region/zone/subzone format, the empty locality will be of form '///'.
PassthroughCluster to forward traffic to the original destination requested.
SniClusterFilter is the name of the sni_cluster envoy filter.
# Variables
ALPNH2Only advertises that Proxy is going to use HTTP/2 when talking to the cluster.
ALPNHttp advertises that Proxy is going to talking either http2 or http 1.1.
ALPNInMesh advertises that Proxy is going to talk to the in-mesh cluster.
ALPNInMeshH2 advertises that Proxy is going to use HTTP/2 when talking to the in-mesh cluster.