You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a prometheus middleware for go-json-rest and I am running into issues due to the differences between the rest.ResponseWriter and the http.ResponseWriter
I am able to get the http.HandlerFunc for prometheus but when trying to get it into a rest.Get I am unable to convert the http.HandlerFunc into a rest.HandlerFunc as far as I can tell the only difference between them is the ResponseWriter
I am trying to create a prometheus middleware for go-json-rest and I am running into issues due to the differences between the
rest.ResponseWriter
and thehttp.ResponseWriter
I am able to get the http.HandlerFunc for prometheus but when trying to get it into a
rest.Get
I am unable to convert thehttp.HandlerFunc
into arest.HandlerFunc
as far as I can tell the only difference between them is theResponseWriter
https://godoc.org/net/http#ResponseWriter
https://godoc.org/github.com/ant0ine/go-json-rest/rest#ResponseWriter
Is there a way to accomplish this? I am fairly new to go so if the answer is pretty obvious I apologize in advance :)
The text was updated successfully, but these errors were encountered: