Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for prefix_routes (0.15 sec)

  1. pilot/pkg/networking/core/envoyfilter/listener_patch_test.go

    {"name": "envoy.redis_proxy",
     "typed_config": {
            "@type": "type.googleapis.com/envoy.extensions.filters.network.redis_proxy.v3.RedisProxy",
             "stat_prefix": "redis_stats",
             "prefix_routes": {
                 "catch_all_route": {
                     "cluster": "custom-redis-cluster"
                 }
             }
     }
    }`),
    			},
    		},
    		{
    			ApplyTo: networking.EnvoyFilter_NETWORK_FILTER,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  2. tests/test_ws_dependencies.py

    def create_dependency(name: str):
        def fun(deps: DepList):
            deps.append(name)
    
        return Depends(fun)
    
    
    router = APIRouter(dependencies=[create_dependency("router")])
    prefix_router = APIRouter(dependencies=[create_dependency("prefix_router")])
    app = FastAPI(dependencies=[create_dependency("app")])
    
    
    @app.websocket("/", dependencies=[create_dependency("index")])
    async def index(websocket: WebSocket, deps: DepList):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 11 20:35:39 UTC 2023
    - 2.1K bytes
    - Viewed (1)
  3. tests/test_ws_router.py

        Depends,
        FastAPI,
        Header,
        WebSocket,
        WebSocketDisconnect,
        status,
    )
    from fastapi.middleware import Middleware
    from fastapi.testclient import TestClient
    
    router = APIRouter()
    prefix_router = APIRouter()
    native_prefix_route = APIRouter(prefix="/native")
    app = FastAPI()
    
    
    @app.websocket_route("/")
    async def index(websocket: WebSocket):
        await websocket.accept()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/networkfilter_test.go

    		}
    		if !redisProxy.LatencyInMicros {
    			t.Errorf("redis proxy latency stat is not configured for microseconds")
    		}
    		if redisProxy.PrefixRoutes.CatchAllRoute.Cluster != "redis-cluster" {
    			t.Errorf("redis proxy's PrefixRoutes.CatchAllCluster is %s", redisProxy.PrefixRoutes.CatchAllRoute.Cluster)
    		}
    	} else {
    		t.Errorf("redis filter type is %T not listener.Filter_TypedConfig ", redisFilter.ConfigType)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/networkfilter.go

    		StatPrefix:      statPrefix, // redis stats are prefixed with redis.<statPrefix> by Envoy
    		Settings: &redis.RedisProxy_ConnPoolSettings{
    			OpTimeout: durationpb.New(redisOpTimeout),
    		},
    		PrefixRoutes: &redis.RedisProxy_PrefixRoutes{
    			CatchAllRoute: &redis.RedisProxy_PrefixRoutes_Route{
    				Cluster: clusterName,
    			},
    		},
    	}
    
    	out := &listener.Filter{
    		Name:       wellknown.RedisProxy,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top