Documentation ¶
Index ¶
- Constants
- func NewExtensionConfigDiscoveryServiceHandler(svc ExtensionConfigDiscoveryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type ExtensionConfigDiscoveryServiceClient
- type ExtensionConfigDiscoveryServiceHandler
- type UnimplementedExtensionConfigDiscoveryServiceHandler
- func (UnimplementedExtensionConfigDiscoveryServiceHandler) DeltaExtensionConfigs(context.Context, ...) error
- func (UnimplementedExtensionConfigDiscoveryServiceHandler) FetchExtensionConfigs(context.Context, *connect.Request[v31.DiscoveryRequest]) (*connect.Response[v31.DiscoveryResponse], error)
- func (UnimplementedExtensionConfigDiscoveryServiceHandler) StreamExtensionConfigs(context.Context, ...) error
Constants ¶
const ( // ExtensionConfigDiscoveryServiceStreamExtensionConfigsProcedure is the fully-qualified name of the // ExtensionConfigDiscoveryService's StreamExtensionConfigs RPC. ExtensionConfigDiscoveryServiceStreamExtensionConfigsProcedure = "/envoy.service.extension.v3.ExtensionConfigDiscoveryService/StreamExtensionConfigs" // ExtensionConfigDiscoveryServiceDeltaExtensionConfigsProcedure is the fully-qualified name of the // ExtensionConfigDiscoveryService's DeltaExtensionConfigs RPC. ExtensionConfigDiscoveryServiceDeltaExtensionConfigsProcedure = "/envoy.service.extension.v3.ExtensionConfigDiscoveryService/DeltaExtensionConfigs" // ExtensionConfigDiscoveryServiceFetchExtensionConfigsProcedure is the fully-qualified name of the // ExtensionConfigDiscoveryService's FetchExtensionConfigs RPC. ExtensionConfigDiscoveryServiceFetchExtensionConfigsProcedure = "/envoy.service.extension.v3.ExtensionConfigDiscoveryService/FetchExtensionConfigs" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const ( // ExtensionConfigDiscoveryServiceName is the fully-qualified name of the // ExtensionConfigDiscoveryService service. ExtensionConfigDiscoveryServiceName = "envoy.service.extension.v3.ExtensionConfigDiscoveryService" )
Variables ¶
This section is empty.
Functions ¶
func NewExtensionConfigDiscoveryServiceHandler ¶
func NewExtensionConfigDiscoveryServiceHandler(svc ExtensionConfigDiscoveryServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewExtensionConfigDiscoveryServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type ExtensionConfigDiscoveryServiceClient ¶
type ExtensionConfigDiscoveryServiceClient interface { StreamExtensionConfigs(context.Context) *connect.BidiStreamForClient[v31.DiscoveryRequest, v31.DiscoveryResponse] DeltaExtensionConfigs(context.Context) *connect.BidiStreamForClient[v31.DeltaDiscoveryRequest, v31.DeltaDiscoveryResponse] FetchExtensionConfigs(context.Context, *connect.Request[v31.DiscoveryRequest]) (*connect.Response[v31.DiscoveryResponse], error) }
ExtensionConfigDiscoveryServiceClient is a client for the envoy.service.extension.v3.ExtensionConfigDiscoveryService service.
func NewExtensionConfigDiscoveryServiceClient ¶
func NewExtensionConfigDiscoveryServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ExtensionConfigDiscoveryServiceClient
NewExtensionConfigDiscoveryServiceClient constructs a client for the envoy.service.extension.v3.ExtensionConfigDiscoveryService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type ExtensionConfigDiscoveryServiceHandler ¶
type ExtensionConfigDiscoveryServiceHandler interface { StreamExtensionConfigs(context.Context, *connect.BidiStream[v31.DiscoveryRequest, v31.DiscoveryResponse]) error DeltaExtensionConfigs(context.Context, *connect.BidiStream[v31.DeltaDiscoveryRequest, v31.DeltaDiscoveryResponse]) error FetchExtensionConfigs(context.Context, *connect.Request[v31.DiscoveryRequest]) (*connect.Response[v31.DiscoveryResponse], error) }
ExtensionConfigDiscoveryServiceHandler is an implementation of the envoy.service.extension.v3.ExtensionConfigDiscoveryService service.
type UnimplementedExtensionConfigDiscoveryServiceHandler ¶
type UnimplementedExtensionConfigDiscoveryServiceHandler struct{}
UnimplementedExtensionConfigDiscoveryServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedExtensionConfigDiscoveryServiceHandler) DeltaExtensionConfigs ¶
func (UnimplementedExtensionConfigDiscoveryServiceHandler) DeltaExtensionConfigs(context.Context, *connect.BidiStream[v31.DeltaDiscoveryRequest, v31.DeltaDiscoveryResponse]) error
func (UnimplementedExtensionConfigDiscoveryServiceHandler) FetchExtensionConfigs ¶
func (UnimplementedExtensionConfigDiscoveryServiceHandler) FetchExtensionConfigs(context.Context, *connect.Request[v31.DiscoveryRequest]) (*connect.Response[v31.DiscoveryResponse], error)
func (UnimplementedExtensionConfigDiscoveryServiceHandler) StreamExtensionConfigs ¶
func (UnimplementedExtensionConfigDiscoveryServiceHandler) StreamExtensionConfigs(context.Context, *connect.BidiStream[v31.DiscoveryRequest, v31.DiscoveryResponse]) error