grpcErrors

package
v0.0.0-...-e5acbb5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound         = errors.New("Not found")
	ErrNoCtxMetaData    = errors.New("No ctxhelper metadata")
	ErrInvalidSessionID = errors.New("Invalid session id")
	ErrEmailExists      = errors.New("Email already exists")
)

Functions

func MapGRPCErrCodeToHTTPStatus

func MapGRPCErrCodeToHTTPStatus(code codes.Code) int

MapGRPCErrCodeToHTTPStatus MapGRPCErrCodeToHttpStatus Map GRPC errors codes to http status

func ParseGRPCErrStatusCode

func ParseGRPCErrStatusCode(err error) codes.Code

ParseGRPCErrStatusCode Parse error and get code

Types

This section is empty.

Jump to

Keyboard shortcuts

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