mirror of https://github.com/status-im/consul.git
13 lines
304 B
Go
13 lines
304 B
Go
|
package packngo
|
||
|
|
||
|
// Rate provides the API request rate limit details
|
||
|
type Rate struct {
|
||
|
RequestLimit int `json:"request_limit"`
|
||
|
RequestsRemaining int `json:"requests_remaining"`
|
||
|
Reset Timestamp `json:"rate_reset"`
|
||
|
}
|
||
|
|
||
|
func (r Rate) String() string {
|
||
|
return Stringify(r)
|
||
|
}
|