Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

YarpCluster

Handle
📦 Aspire.Hosting.Yarp v17.0.0

Represents a cluster for YARP routes

type YarpCluster interface{}

Methods

Set the forwarder request configuration for the cluster.
WithForwarderRequestConfig(config *YarpForwarderRequestConfig) YarpCluster
config*YarpForwarderRequestConfig
YarpCluster

Returns a handle; failures surface later via Err().

Set the health check configuration for the cluster.
WithHealthCheckConfig(config *YarpHealthCheckConfig) YarpCluster
config*YarpHealthCheckConfig
YarpCluster

Returns a handle; failures surface later via Err().

Set the HTTP client configuration for the cluster.
WithHttpClientConfig(config *YarpHttpClientConfig) YarpCluster
config*YarpHttpClientConfig
YarpCluster

Returns a handle; failures surface later via Err().

Set the LoadBalancingPolicy for the cluster.
WithLoadBalancingPolicy(policy string) YarpCluster
policystring
YarpCluster

Returns a handle; failures surface later via Err().

Set the Metadata for the cluster.
WithMetadata(metadata map[string]string) YarpCluster
metadatamap[string]string
YarpCluster

Returns a handle; failures surface later via Err().

Set the session affinity configuration for the cluster.
WithSessionAffinityConfig(config *YarpSessionAffinityConfig) YarpCluster
config*YarpSessionAffinityConfig
YarpCluster

Returns a handle; failures surface later via Err().