IYarpConfigurationBuilder
Interface
interface IYarpConfigurationBuilder { addCatchAllRoute(target: ExternalServiceResource|string): YarpRoute; addClusterFromEndpoint(endpoint: EndpointReference): YarpCluster; addClusterFromExternalService(externalService: ExternalServiceResource): YarpCluster; addClusterFromResource(resource: IResourceWithServiceDiscovery): YarpCluster; addClusterWithDestination( clusterName: string, destination: any): YarpCluster; addClusterWithDestinations( clusterName: string, destinations: any[]): YarpCluster; addRoute( path: string, target: ExternalServiceResource|string): YarpRoute;} 7 members
Methods
method
addCatchAllRoute Adds a catch-all route for a cluster, endpoint, resource, or string destination target.
addCatchAllRoute(target: ExternalServiceResource|string): YarpRouteParameters
target ExternalServiceResource|string Returns
YarpRoute method
addClusterFromEndpoint Adds a cluster for an endpoint reference.
addClusterFromEndpoint(endpoint: EndpointReference): YarpClusterParameters
endpoint EndpointReference Returns
YarpCluster Adds a cluster for an external service resource.
addClusterFromExternalService(externalService: ExternalServiceResource): YarpClusterParameters
externalService ExternalServiceResource Returns
YarpCluster method
addClusterFromResource Adds a cluster for a resource that supports service discovery.
addClusterFromResource(resource: IResourceWithServiceDiscovery): YarpClusterParameters
resource IResourceWithServiceDiscovery Returns
YarpCluster method
addClusterWithDestination Adds a cluster from a single destination.
addClusterWithDestination( clusterName: string, destination: any): YarpClusterParameters
clusterName string destination any Returns
YarpCluster method
addClusterWithDestinations Adds a cluster from multiple destinations.
addClusterWithDestinations( clusterName: string, destinations: any[]): YarpClusterParameters
clusterName string destinations any[] Returns
YarpCluster method
addRoute Adds a route for a cluster, endpoint, resource, or string destination target.
addRoute( path: string, target: ExternalServiceResource|string): YarpRouteParameters
path string target ExternalServiceResource|string Returns
YarpRoute