Add simple Version and GetSysInfo services

This commit is contained in:
Harshavardhana committed 2015-07-02 21:04:04 -07:00
1 parent 14ec42d646
commit 84810162f5
2 files changed
+77 -3

No files matched your search

+2
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)
}