Rename stuttered service names and make them appropriate

This commit is contained in:
Harshavardhana
2015-07-05 10:19:23 -07:00
parent 18a8891a15
commit a3ccb9d405
3 changed files with 15 additions and 15 deletions

View File

@@ -24,11 +24,11 @@ import (
"github.com/minio/minio/pkg/iodine"
)
// GetSysInfoService -
type GetSysInfoService struct{}
// SysInfoService -
type SysInfoService struct{}
// GetSysInfoReply -
type GetSysInfoReply struct {
// SysInfoReply -
type SysInfoReply struct {
Hostname string `json:"hostname"`
SysARCH string `json:"sys.arch"`
SysOS string `json:"sys.os"`
@@ -38,7 +38,7 @@ type GetSysInfoReply struct {
MemStats runtime.MemStats `json:"memstats"`
}
func setSysInfoReply(sis *GetSysInfoReply) error {
func setSysInfoReply(sis *SysInfoReply) error {
sis.SysARCH = runtime.GOARCH
sis.SysOS = runtime.GOOS
sis.SysCPUS = runtime.NumCPU()
@@ -59,6 +59,6 @@ func setSysInfoReply(sis *GetSysInfoReply) error {
}
// Get method
func (s *GetSysInfoService) Get(r *http.Request, args *Args, reply *GetSysInfoReply) error {
func (s *SysInfoService) Get(r *http.Request, args *Args, reply *SysInfoReply) error {
return setSysInfoReply(reply)
}