github.com/cilium/cilium@v1.16.2/pkg/envoy/xds/stream.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright Authors of Cilium 3 4 package xds 5 6 import ( 7 envoy_service_discovery "github.com/cilium/proxy/go/envoy/service/discovery/v3" 8 ) 9 10 // Stream is the subset of the gRPC bi-directional stream types which is used 11 // by Server. 12 type Stream interface { 13 // Send sends a xDS response back to the client. 14 Send(*envoy_service_discovery.DiscoveryResponse) error 15 16 // Recv receives a xDS request from the client. 17 Recv() (*envoy_service_discovery.DiscoveryRequest, error) 18 }