Open jmwielandt opened 2 years ago
You may need an API gateway (Ingress, Traefik or nginx) to forward traffic on a specified path to gin Server
Hi @jmwielandt
net/http gin gorilla/mux All of above are implements the http.HandlerFunc, you might be easily rebuild your function.
You can use a small adapter to serve net/http handler methods from gin, here's an example:
func ginAdapter() gin.HandlerFunc {
return func(c *gin.Context) {
yourHandler(c.Writer, c.Request)
}
}
Description
We have a web server done with gorilla mux and we want to migrate it to gin gonic, but we won't going to do it all at once: we wanna do it gradually.
Is there a way to define a gin gonic router and include it inside my gorilla server? Or any other way to acomplish that migration?
Thanks!