Versions in this module Expand all Collapse all v1 v1.0.0 Jul 29, 2026 Changes in this version + const DefaultBaseURL + var ErrInvalidResponse = errors.New("index-now.ru invalid response") + var ErrTransport = errors.New("index-now.ru transport error") + type APIError struct + Body Object + Message string + RequestID string + RetryAfter *float64 + StatusCode int + func (errorValue *APIError) Error() string + type Client struct + func NewClient(apiToken string, options ...Option) (*Client, error) + func (client *Client) CheckSitemap(ctx context.Context, sitemapID string) (Object, error) + func (client *Client) GetAccount(ctx context.Context) (Object, error) + func (client *Client) GetCrawlAudit(ctx context.Context, siteID string) (Object, error) + func (client *Client) GetDashboard(ctx context.Context, siteID string) (Object, error) + func (client *Client) GetHistory(ctx context.Context, siteID string, limit int) (Object, error) + func (client *Client) GetStatus(ctx context.Context, submissionID string) (Object, error) + func (client *Client) ListProjects(ctx context.Context) ([]Object, error) + func (client *Client) ListSitemaps(ctx context.Context) ([]Object, error) + func (client *Client) ListSites(ctx context.Context, projectID string) ([]Object, error) + func (client *Client) PageAudit(ctx context.Context, pageURL string) (Object, error) + func (client *Client) StartCrawlAudit(ctx context.Context, siteID string, request CrawlAuditRequest) (Object, error) + func (client *Client) Submit(ctx context.Context, request SubmissionRequest) (Object, error) + type CrawlAuditRequest struct + ExcludePatterns []string + IncludePatterns []string + KeepQueryParameters bool + MaxDepth int + RespectNofollow bool + RespectRobots bool + UseJinaFallback bool + type Object map[string]any + type Option func(*clientOptions) error + func WithBaseURL(rawURL string) Option + func WithHTTPClient(client *http.Client) Option + func WithTimeout(timeout time.Duration) Option + func WithUserAgent(userAgent string) Option + type SubmissionRequest struct + Engines []string + SiteID string + SubmissionMode string + URLs []string