"net/http"
"net/rpc"
- "git.fd.io/govpp.git/adapter"
+ "go.fd.io/govpp/adapter"
)
// Server defines a proxy server that serves client requests to stats and binapi.
}
func (p *Server) ConnectStats(stats adapter.StatsAPI) error {
- return p.statsRPC.Connect(stats)
+ return p.statsRPC.connect(stats)
}
func (p *Server) DisconnectStats() {
- p.statsRPC.Disconnect()
+ p.statsRPC.disconnect()
}
func (p *Server) ConnectBinapi(binapi adapter.VppAPI) error {
- return p.binapiRPC.Connect(binapi)
+ return p.binapiRPC.connect(binapi)
}
func (p *Server) DisconnectBinapi() {
- p.binapiRPC.Disconnect()
+ p.binapiRPC.disconnect()
}
func (p *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {