Skip to content

soichisumi-org/grpc-custom-error-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published