errcode

package
v0.0.0-...-e927e70 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Jump to

Keyboard shortcuts

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