mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-03-01 01:53:36 +08:00
* add ns1 libs to vendor * Create shim and wire into tests * ns1 provider more working. * vendor correct files * comment diff functions * ns1 docs * making mx work with ns1 * ? * refactor tests to make capability blocks easier. fix up ns1
15 lines
450 B
Go
15 lines
450 B
Go
package rest
|
|
|
|
// // GetQPSStats returns current queries per second (QPS) for the account
|
|
// func (c APIClient) GetQPSStats() (v float64, err error) {
|
|
// var s map[string]float64
|
|
// _, err = c.doHTTPUnmarshal("GET", "https://api.nsone.net/v1/stats/qps", nil, &s)
|
|
// if err != nil {
|
|
// return v, err
|
|
// }
|
|
// v, found := s["qps"]
|
|
// if !found {
|
|
// return v, errors.New("Could not find 'qps' key in returned data")
|
|
// }
|
|
// return v, nil
|
|
// }
|