grpcutil

package
v0.0.0-...-4e4a529 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MultiplexGRPC

func MultiplexGRPC(grpcServer *grpc.Server, httpHandler http.Handler) http.Handler

MultiplexGRPC takes a gRPC server and a plain HTTP handler and multiplexes the request handling. Any requests that declare themselves as gRPC requests are routed to the gRPC server, all others are routed to the httpHandler.

func SplitMethodName

func SplitMethodName(fullMethod string) (string, string)

SplitMethodName splits a full gRPC method name (e.g. "/package.service/method") in to its individual components (service, method)

Copied from github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/reporter.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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