Consolidate controller rpc into one single service

This commit is contained in:
Harshavardhana
2015-09-20 12:27:40 -07:00
parent 29673fed76
commit d1621691b7
7 changed files with 150 additions and 182 deletions
+1 -3
View File
@@ -28,9 +28,7 @@ import (
func getControllerRPCHandler() http.Handler {
s := jsonrpc.NewServer()
s.RegisterCodec(json.NewCodec(), "application/json")
s.RegisterService(new(DonutService), "Donut")
s.RegisterService(new(AuthService), "Auth")
s.RegisterService(new(controllerRPCService), "Server")
s.RegisterService(new(controllerRPCService), "Controller")
// Add new RPC services here
return registerRPC(router.NewRouter(), s)
}