xgrpc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeFromGrpcCode

func CodeFromGrpcCode(code codes.Code) int

CodeFromGrpcCode converts the gRPC code to an HTTP status code. See: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto

func CodeFromGrpcError

func CodeFromGrpcError(err error) int

CodeFromGrpcError converts the gRPC error to an HTTP status code. See: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto

func IsGrpcError

func IsGrpcError(err error) bool

IsGrpcError checks if the error is a gRPC error.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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