grpchttp

package
Version: v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL