Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
cmd
 
 
 
 
 
 
 
 
 
 
 
 
 
 

grpc-custom-error-sample

sample implementation of grpc server with grpc-gateway which returns custom error response

usage

build

  • make go-build
  • make buildProto

run

  • launch cmd/api/api and cmd/gw/gw

request example

  • server returns response with success
    • curl localhost:8080/data?success=true
  • server returns response with detailed error
    • curl localhost:8080/data?success=false

repository layout

  • cmd
    • main applications
  • proto
    • proto files
  • app
    • internal packages

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published