rate.go 274 B

123456789101112
  1. package packngo
  2. // Rate provides the API request rate limit details
  3. type Rate struct {
  4. RequestLimit int `json:"request_limit"`
  5. RequestsRemaining int `json:"requests_remaining"`
  6. Reset Timestamp `json:"rate_reset"`
  7. }
  8. func (r Rate) String() string {
  9. return Stringify(r)
  10. }