Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

github.com/philip-bui/grpc-errors

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/philip-bui/grpc-errors


Version published
Created

gRPC Errors

BuildStatus Widget CodeCov Widget GoReport Widget GoDoc Widget

Implementation of gRPC errors that return matching status codes.

Usage

import (
	"github.com/philip-bui/grpc-errors"
)

func (s *Server) UnaryRequestExample(ctx context.Context, req *pb.Req) (*pb.Resp, error) {
	return nil, errors.ErrInternalServer
}

License

gRPC Errors is available under the MIT license. See LICENSE for details.

FAQs

Package last updated on 05 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts