1// Copyright 2022 gRPC authors. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Local copy of Envoy xDS proto file, used for testing only. 16 17syntax = "proto3"; 18 19package envoy.extensions.filters.http.stateful_session.v3; 20 21import "src/proto/grpc/testing/xds/v3/extension.proto"; 22 23// [#protodoc-title: Stateful session filter] 24// Stateful session :ref:`configuration overview <config_http_filters_stateful_session>`. 25// [#extension: envoy.filters.http.stateful_session] 26 27message StatefulSession { 28 // Specific implementation of session state. This session state will be used to store and 29 // get address of the upstream host to which the session is assigned. 30 // 31 // [#extension-category: envoy.http.stateful_session] 32 config.core.v3.TypedExtensionConfig session_state = 1; 33} 34 35message StatefulSessionPerRoute { 36 oneof override { 37 // Disable the stateful session filter for this particular vhost or route. If disabled is 38 // specified in multiple per-filter-configs, the most specific one will be used. 39 bool disabled = 1; 40 41 // Per-route stateful session configuration that can be served by RDS or static route table. 42 StatefulSession stateful_session = 2; 43 } 44} 45