go-control-plane
go-control-plane copied to clipboard
How correctly connect HTTPGateway v3 version to http.Server?
In v3 version, HTTPGateway has method ServeHTTP, that incompatible with method Handler in http.Server (Go version 1.18.3). So, I've got this error:
Cannot use '&HTTPGateway{ Gateway: xds.HTTPGateway{Server: srv}, }' (type *HTTPGateway) as type Handler
Please give me some examples how I can use HTTPGateway with http.Server?