terraform/vendor/github.com/packethost/packngo/rate.go

13 lines
304 B
Go
Raw Normal View History

package packngo
// Rate provides the API request rate limit details
type Rate struct {
2016-07-21 21:57:49 +02:00
RequestLimit int `json:"request_limit"`
RequestsRemaining int `json:"requests_remaining"`
Reset Timestamp `json:"rate_reset"`
}
2016-07-21 21:57:49 +02:00
func (r Rate) String() string {
return Stringify(r)
}