Add simple Version and GetSysInfo services

This commit is contained in:
Harshavardhana
2015-07-01 15:27:03 -07:00
parent 14ec42d646
commit 84810162f5
2 changed files with 77 additions and 3 deletions

View File

@@ -112,6 +112,8 @@ func RPCHandler() http.Handler {
s := rpc.NewServer()
s.RegisterJSONCodec()
s.RegisterService(new(rpc.HelloService), "")
s.RegisterService(new(rpc.VersionService), "")
s.RegisterService(new(rpc.GetSysInfoService), "")
// add more services here
return registerRPC(router.NewRouter(), s)
}