Hacker News new | ask | show | jobs
by dansult 1052 days ago
I use chi with 'oapi-codegen' to build my endpoints based off my hand rolled openapi spec files.

Having dabbled in grpc I wasnt aware of grpc gateway. Do you have an example of your setup? If not, no sweat I can figure it out in time.

Just really intrigued because I love using generators to save time and for documenting. Sqlc being another favourite of mine.

1 comments

I don't have any example that's public atm, but the guide in grpc-gateway is pretty clear/can be followed step by step.

https://github.com/grpc-ecosystem/grpc-gateway

To integrate with Fiber, I used the Fiber Adaptor (also pretty straightforward): https://docs.gofiber.io/api/middleware/adaptor

Thanks mate.