grpchttp

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeFromHTTPStatus

func CodeFromHTTPStatus(status int) codes.Code

CodeFromHTTPStatus converts an HTTP response status into the corresponding gRPC error code.

func RequestIDAnnotator

func RequestIDAnnotator(ctx context.Context, r *http.Request) metadata.MD

RequestIDAnnotator returns gRPC metadata with the Request-Id header if present. The request ID can be later retrieved by requestid.FromContext.

Types

This section is empty.

Jump to

Keyboard shortcuts

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