mirror of
https://github.com/minio/minio.git
synced 2026-11-22 15:13:48 +00:00
Add disk detection for Linux, add new RPC service GetDiskInfoService(), remove dummy HelloService()
This commit is contained in:
1 parent
181727ab57
commit
e66a84242a
9 files changed
+378
-59
No files matched your search
@@ -117,9 +117,9 @@ func getAPIHandler(conf api.Config) (http.Handler, api.Minio) {
|
||||
func getRPCHandler() http.Handler {
|
||||
s := rpc.NewServer()
|
||||
s.RegisterJSONCodec()
|
||||
s.RegisterService(new(rpc.HelloService), "")
|
||||
s.RegisterService(new(rpc.VersionService), "")
|
||||
s.RegisterService(new(rpc.GetSysInfoService), "")
|
||||
s.RegisterService(new(rpc.GetDiskInfoService), "")
|
||||
// Add new services here
|
||||
return registerRPC(router.NewRouter(), s)
|
||||
}
|
||||
Reference in new issue
Block a user