RouteSpec constructor

const RouteSpec({
  1. Input<RouteSpecGrpcRoute?>? grpcRoute,
  2. Input<RouteSpecHttp2Route?>? http2Route,
  3. Input<RouteSpecHttpRoute?>? httpRoute,
  4. Input<int?>? priority,
  5. Input<RouteSpecTcpRoute?>? tcpRoute,
})

Creates a new RouteSpec. grpcRoute GRPC routing information for the route. See spec.grpc_route Block for details. http2Route HTTP/2 routing information for the route. See spec.http2_route Block for details. httpRoute HTTP routing information for the route. See spec.http_route Block for details. priority Priority for the route, between 0 and 1000. Routes are matched based on the specified value, where 0 is the highest priority. tcpRoute TCP routing information for the route. See spec.tcp_route Block for details.

Implementation

const RouteSpec({
  this.grpcRoute,
  this.http2Route,
  this.httpRoute,
  this.priority,
  this.tcpRoute,
});