httphelper

package
v0.106.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStatusFromMsgAndHTTPCode

func NewStatusFromMsgAndHTTPCode(errMsg string, statusCode int) *status.Status

NewStatusFromMsgAndHTTPCode returns a gRPC status based on an error message string and a http status code. This function is shared between the http receiver and http exporter for error propagation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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