errcode

package
v0.0.0-...-d5d5ef8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT 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