- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewJSONWith (0.21 sec)
-
cmd/peer-rest-server.go
info := getLocalServerProperty(globalEndpoints, &r, metrics) return madminServerProperties.NewJSONWith(&info), nil } // GetCPUsHandler - returns CPU info. func (s *peerRESTServer) GetCPUsHandler(_ *grid.MSS) (*grid.JSON[madmin.CPUs], *grid.RemoteErr) { info := madmin.GetCPUs(context.Background(), globalLocalNodeName) return madminCPUs.NewJSONWith(&info), nil } // GetNetInfoHandler - returns network information.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 51.8K bytes - Viewed (0) -
internal/grid/types.go
} // NewJSON returns a new JSONPool. // No initial value is set. func (p *JSONPool[T]) NewJSON() *JSON[T] { var j JSON[T] j.p = p return &j } // NewJSONWith returns a new JSON with the provided value. func (p *JSONPool[T]) NewJSONWith(val *T) *JSON[T] { var j JSON[T] j.p = p j.val = val return &j } // Value returns the underlying value. // If not set yet, a new value is created.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Apr 01 23:42:09 GMT 2024 - 15.4K bytes - Viewed (0)