tapv2alphaconnect

package
v1.16.0-20230718213038... Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// TapSinkServiceName is the fully-qualified name of the TapSinkService service.
	TapSinkServiceName = "envoy.service.tap.v2alpha.TapSinkService"
)
View Source
const (
	// TapSinkServiceStreamTapsProcedure is the fully-qualified name of the TapSinkService's StreamTaps
	// RPC.
	TapSinkServiceStreamTapsProcedure = "/envoy.service.tap.v2alpha.TapSinkService/StreamTaps"
)

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.

Variables

This section is empty.

Functions

func NewTapSinkServiceHandler

func NewTapSinkServiceHandler(svc TapSinkServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewTapSinkServiceHandler 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 TapSinkServiceClient

type TapSinkServiceClient interface {
	// Envoy will connect and send StreamTapsRequest messages forever. It does not expect any
	// response to be sent as nothing would be done in the case of failure. The server should
	// disconnect if it expects Envoy to reconnect.
	StreamTaps(context.Context) *connect.ClientStreamForClient[v2alpha.StreamTapsRequest, v2alpha.StreamTapsResponse]
}

TapSinkServiceClient is a client for the envoy.service.tap.v2alpha.TapSinkService service.

func NewTapSinkServiceClient

func NewTapSinkServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) TapSinkServiceClient

NewTapSinkServiceClient constructs a client for the envoy.service.tap.v2alpha.TapSinkService 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 TapSinkServiceHandler

type TapSinkServiceHandler interface {
	// Envoy will connect and send StreamTapsRequest messages forever. It does not expect any
	// response to be sent as nothing would be done in the case of failure. The server should
	// disconnect if it expects Envoy to reconnect.
	StreamTaps(context.Context, *connect.ClientStream[v2alpha.StreamTapsRequest]) (*connect.Response[v2alpha.StreamTapsResponse], error)
}

TapSinkServiceHandler is an implementation of the envoy.service.tap.v2alpha.TapSinkService service.

type UnimplementedTapSinkServiceHandler

type UnimplementedTapSinkServiceHandler struct{}

UnimplementedTapSinkServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedTapSinkServiceHandler) StreamTaps

Jump to

Keyboard shortcuts

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