extensionv3connect

package
v1.16.1-20240426201503... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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.

View Source
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

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) FetchExtensionConfigs

func (UnimplementedExtensionConfigDiscoveryServiceHandler) StreamExtensionConfigs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL