Sipproxy update for routing affinity (#19254)
Risk Level: Medium Testing: unit test & manual testing Docs Changes: update sip proxy docs Release Notes: Platform Specific Features: Signed-off-by: Mingling Ding <mingling.ding01@gmail.com> Co-authored-by: Felix Du <durd07@gmail.com> Mirrored from https://github.com/envoyproxy/envoy @ 7174c148a0763f2ed5863c3ab341d4a9ce01c54bpull/626/head
parent
3846fffe24
commit
ff47e0a4bd
6 changed files with 160 additions and 1 deletions
@ -0,0 +1,13 @@ |
||||
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. |
||||
|
||||
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
api_proto_package( |
||||
has_services = True, |
||||
deps = [ |
||||
"//envoy/config/core/v3:pkg", |
||||
"@com_github_cncf_udpa//udpa/annotations:pkg", |
||||
], |
||||
) |
@ -0,0 +1,126 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.extensions.filters.network.sip_proxy.tra.v3alpha; |
||||
|
||||
import "envoy/config/core/v3/config_source.proto"; |
||||
import "envoy/config/core/v3/grpc_service.proto"; |
||||
|
||||
import "google/protobuf/duration.proto"; |
||||
|
||||
import "udpa/annotations/status.proto"; |
||||
import "udpa/annotations/versioning.proto"; |
||||
import "validate/validate.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.extensions.filters.network.sip_proxy.tra.v3alpha"; |
||||
option java_outer_classname = "TraProto"; |
||||
option java_multiple_files = true; |
||||
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/sip_proxy/tra/v3alpha"; |
||||
option java_generic_services = true; |
||||
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||
|
||||
// [#protodoc-title: TrafficRoutingAssistant] |
||||
|
||||
service TraService { |
||||
rpc Create(TraServiceRequest) returns (TraServiceResponse) { |
||||
} |
||||
|
||||
rpc Update(TraServiceRequest) returns (TraServiceResponse) { |
||||
} |
||||
|
||||
rpc Retrieve(TraServiceRequest) returns (TraServiceResponse) { |
||||
} |
||||
|
||||
rpc Delete(TraServiceRequest) returns (TraServiceResponse) { |
||||
} |
||||
|
||||
rpc Subscribe(TraServiceRequest) returns (stream TraServiceResponse) { |
||||
} |
||||
} |
||||
|
||||
message TraServiceConfig { |
||||
// Specifies the gRPC service that hosts the rate limit service. The client |
||||
// will connect to this cluster when it needs to make rate limit service |
||||
// requests. |
||||
config.core.v3.GrpcService grpc_service = 1 [(validate.rules).message = {required: true}]; |
||||
|
||||
// API version for rate limit transport protocol. This describes the rate limit gRPC endpoint and |
||||
// version of messages used on the wire. |
||||
config.core.v3.ApiVersion transport_api_version = 2 |
||||
[(validate.rules).enum = {defined_only: true}]; |
||||
|
||||
google.protobuf.Duration timeout = 3; |
||||
} |
||||
|
||||
// [#next-free-field: 7] |
||||
message TraServiceRequest { |
||||
string type = 1; |
||||
|
||||
oneof request { |
||||
CreateRequest create_request = 2; |
||||
|
||||
UpdateRequest update_request = 3; |
||||
|
||||
RetrieveRequest retrieve_request = 4; |
||||
|
||||
DeleteRequest delete_request = 5; |
||||
|
||||
SubscribeRequest subscribe_request = 6; |
||||
} |
||||
} |
||||
|
||||
// [#next-free-field: 9] |
||||
message TraServiceResponse { |
||||
string type = 1; |
||||
|
||||
int32 ret = 2; |
||||
|
||||
string reason = 3; |
||||
|
||||
oneof response { |
||||
CreateResponse create_response = 4; |
||||
|
||||
UpdateResponse update_response = 5; |
||||
|
||||
RetrieveResponse retrieve_response = 6; |
||||
|
||||
DeleteResponse delete_response = 7; |
||||
|
||||
SubscribeResponse subscribe_response = 8; |
||||
} |
||||
} |
||||
|
||||
message CreateRequest { |
||||
map<string, string> data = 1; |
||||
} |
||||
|
||||
message CreateResponse { |
||||
} |
||||
|
||||
message UpdateRequest { |
||||
map<string, string> data = 1; |
||||
} |
||||
|
||||
message UpdateResponse { |
||||
} |
||||
|
||||
message RetrieveRequest { |
||||
string key = 1; |
||||
} |
||||
|
||||
message RetrieveResponse { |
||||
map<string, string> data = 1; |
||||
} |
||||
|
||||
message DeleteRequest { |
||||
string key = 1; |
||||
} |
||||
|
||||
message DeleteResponse { |
||||
} |
||||
|
||||
message SubscribeRequest { |
||||
} |
||||
|
||||
message SubscribeResponse { |
||||
map<string, string> data = 1; |
||||
} |
Loading…
Reference in new issue