Versions in this module Expand all Collapse all v1 v1.10.2 Mar 8, 2026 Changes in this version + func KeyAuth(validateKey ValidateKeyFunc) func(http.Handler) http.Handler + func Routes(r chi.Router, appState *AppState) + type AppState struct + RQueue *rqueue.Client + Store IStore + func NewAppState(rqueue *rqueue.Client, store IStore) *AppState + type DeleteJobResponse struct + Message string + type ErrorResponse struct + Message string + type GmapData any + type HealthCheckResponse struct + Status string + type IStore interface + ValidateAPIKey func(ctx context.Context, key string) (keyID int, keyName string, err error) + type JobStatusResponse struct + CompletedAt *time.Time + CreatedAt time.Time + Error string + JobID string + Keyword string + ResultCount int + Results GmapData + StartedAt *time.Time + Status string + type JobSummary struct + CompletedAt *time.Time + CreatedAt time.Time + Error string + JobID string + Keyword string + ResultCount int + StartedAt *time.Time + Status string + type KeyInfo struct + ID int + Name string + func KeyFromContext(ctx context.Context) *KeyInfo + type ListJobsRequest struct + Cursor string + Limit int + State string + type ListJobsResponse struct + HasMore bool + Jobs []JobSummary + NextCursor string + type ScrapeRequest struct + Email bool + ExtraReviews bool + FastMode bool + GeoCoordinates string + Keyword string + Lang string + MaxDepth int + Radius float64 + Timeout int + Zoom int + func (r *ScrapeRequest) SetDefaults() + func (r *ScrapeRequest) Validate() error + type ScrapeResponse struct + JobID string + Status string + type ValidateKeyFunc func(ctx context.Context, key string) (keyID int, keyName string, err error)