Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Addr string
DBConfig db.Config
S3Config storage.S3Config
ScraperConfig scraper.Config
CORSEnabled bool
}
Config contains server configuration
type ExtractLinksRequest ¶
type ExtractLinksRequest struct {
URL string `json:"url"`
}
ExtractLinksRequest represents an extract links request
type ExtractLinksResponse ¶
type ExtractLinksResponse struct {
URL string `json:"url"`
Links []string `json:"links"`
Count int `json:"count"`
}
ExtractLinksResponse represents an extract links response
type ImageSearchRequest ¶
type ImageSearchRequest struct {
Tags []string `json:"tags"`
}
ImageSearchRequest represents a search request for images by tags
type ImageSearchResponse ¶
type ImageSearchResponse struct {
Images []*models.ImageInfo `json:"images"`
Count int `json:"count"`
}
ImageSearchResponse represents the response for image search
type ProcessImageRequest ¶
type ProcessImageRequest struct {
ExtractedText string `json:"extracted_text"` // OCR extracted text from image
Title string `json:"title"` // Auto-generated title
ImageID string `json:"image_id"` // Image UUID
ImageURL string `json:"image_url"` // Synthetic URL for uploaded image
Summary string `json:"summary"` // AI-generated summary
Tags []string `json:"tags"` // AI-generated tags
}
ProcessImageRequest represents a request to process an uploaded image
type ScrapeRequest ¶
type ScrapeRequest struct {
URL string `json:"url"`
Force bool `json:"force"` // Force re-scrape even if exists
}
ScrapeRequest represents a scrape request
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the API server
func (*Server) UpdateImageMetrics ¶
func (s *Server) UpdateImageMetrics()
UpdateImageMetrics updates Prometheus gauge metrics for image statistics
Click to show internal directories.
Click to hide internal directories.