data

package
v0.0.0-...-bd6e288 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgoliaData

type AlgoliaData struct {
	ObjectID string `json:"objectID"`
	Product
}

type CrawledPage

type CrawledPage struct {
	URL    string `bson:"url"`
	HTML   string `bson:"html"`
	Source string `bson:"source"`
}

type MetaData

type MetaData struct {
	UpdatedAt string `bson:"updated_at"`
}

type Product

type Product struct {
	ProductID   string   `bson:"_id" json:"objectID"`
	Slug        string   `bson:"slug" json:"slug"`
	Name        string   `bson:"name" json:"name"`
	Price       float64  `bson:"price" json:"price"`
	Rating      float64  `bson:"rating" json:"rating"`
	Description string   `bson:"description" json:"description"`
	URL         string   `bson:"url" json:"url"`
	Source      string   `bson:"source" json:"source"`
	Images      []string `bson:"images" json:"images"`
}

type Target

type Target interface {
	Sniff(wg *sync.WaitGroup)
	Index(page CrawledPage)
	String() string
}

type UrlQueue

type UrlQueue struct {
	ID     string `bson:"_id"`
	URL    string `bson:"url"`
	Source string `bson:"source"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL