MCPcopy
hub / github.com/eolinker/goku_lite / ReadInfo

Function ReadInfo

console/module/balance/param.go:35–51  ·  view source on GitHub ↗

ReadInfo 读取负载信息

(balance *entity.Balance)

Source from the content-addressed store, hash-verified

33
34//ReadInfo 读取负载信息
35func ReadInfo(balance *entity.Balance) *Info {
36 info := &Info{
37 Name: balance.Name,
38 ServiceName: balance.ServiceName,
39 ServiceType: balance.ServiceType,
40 ServiceDriver: balance.ServiceDriver,
41 AppName: balance.AppName,
42 Static: balance.Static,
43 StaticCluster: nil,
44 Desc: balance.Desc,
45 CreateTime: balance.CreateTime,
46 UpdateTime: balance.UpdateTime,
47 CanDelete: balance.CanDelete,
48 }
49 json.Unmarshal([]byte(balance.StaticCluster), &info.StaticCluster)
50 return info
51}

Callers 3

GetFunction · 0.85
SearchFunction · 0.85
GetAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected