mirror of
https://github.com/minio/minio.git
synced 2025-03-26 07:20:56 -04:00
Json tags to some structs were missing. Fix ServerRep reply on the server.
This commit is contained in:
parent
3b050a4299
commit
ca17408be0
@ -59,12 +59,12 @@ type DefaultRep struct {
|
|||||||
|
|
||||||
// ServerListRep collection of server replies
|
// ServerListRep collection of server replies
|
||||||
type ServerListRep struct {
|
type ServerListRep struct {
|
||||||
List []ServerRep
|
List []ServerRep `json:"list"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DiskStatsRep collection of disks
|
// DiskStatsRep collection of disks
|
||||||
type DiskStatsRep struct {
|
type DiskStatsRep struct {
|
||||||
Disks []string
|
Disks []string `json:"disks"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MemStatsRep memory statistics of a server
|
// MemStatsRep memory statistics of a server
|
||||||
@ -83,7 +83,7 @@ type Network struct {
|
|||||||
|
|
||||||
// NetStatsRep network statistics of a server
|
// NetStatsRep network statistics of a server
|
||||||
type NetStatsRep struct {
|
type NetStatsRep struct {
|
||||||
Interfaces []Network
|
Interfaces []Network `json:"interfaces"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SysInfoRep system information of a server
|
// SysInfoRep system information of a server
|
||||||
|
@ -27,10 +27,8 @@ import (
|
|||||||
type serverRPCService struct{}
|
type serverRPCService struct{}
|
||||||
|
|
||||||
func (s *serverRPCService) Add(r *http.Request, arg *ServerArg, rep *ServerRep) error {
|
func (s *serverRPCService) Add(r *http.Request, arg *ServerArg, rep *ServerRep) error {
|
||||||
rep = &ServerRep{
|
rep.Host = "192.168.1.1:9002"
|
||||||
Host: "192.168.1.1:9002",
|
rep.ID = "6F27CB16-493D-40FA-B035-2A2E5646066A"
|
||||||
ID: "6F27CB16-493D-40FA-B035-2A2E5646066A",
|
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user