Documentation
¶
Index ¶
Constants ¶
View Source
const ( // BaseURL is the Ahrefs API v3 base URL BaseURL = "https://api.ahrefs.com/v3" // DefaultTimeout for HTTP requests DefaultTimeout = 60 * time.Second // DefaultMaxRetries for failed requests DefaultMaxRetries = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Ahrefs API client
type Response ¶
type Response struct {
StatusCode int
Body []byte
Headers http.Header
Meta ResponseMeta
}
Response represents an API response with metadata
type ResponseMeta ¶
type ResponseMeta struct {
UnitsConsumed int `json:"units_consumed,omitempty"`
RateLimitRemaining int `json:"rate_limit_remaining,omitempty"`
ResponseTimeMS int64 `json:"response_time_ms"`
}
ResponseMeta contains metadata about the API response
Click to show internal directories.
Click to hide internal directories.