Separate out memory statistics and system information into two different services

This commit is contained in:
Harshavardhana
2015-07-07 16:59:20 -07:00
parent 8abb96c030
commit 676b9058de
4 changed files with 58 additions and 12 deletions

View File

@@ -114,8 +114,9 @@ func getRPCHandler() http.Handler {
s.RegisterJSONCodec()
s.RegisterService(new(rpc.VersionService), "Version")
s.RegisterService(new(rpc.SysInfoService), "SysInfo")
s.RegisterService(new(rpc.MemStatsService), "MemStats")
s.RegisterService(new(rpc.DiskInfoService), "DiskInfo")
s.RegisterService(new(rpc.DonutService), "Donut")
// Add new services here
// Add new RPC services here
return registerRPC(router.NewRouter(), s)
}