Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageData ¶
type PageData struct { URL string `json:"url,omitempty"` MatchingTerms []string `json:"matching_terms,omitempty"` SimilarityScore float64 `json:"similarity_score,omitempty"` Error string `json:"error,omitempty"` }
PageData represents the data of a crawled page.
func (*PageData) MarshalBinary ¶
MarshalBinary marshals the PageData into binary form. It returns an error if the PageData is not valid or if the marshaling fails.
func (*PageData) UnmarshalBinary ¶
UnmarshalBinary unmarshals binary data into PageData. It returns an error if the unmarshaling fails or if the PageData is not valid after unmarshaling.
func (*PageData) UpdatePageData ¶
UpdatePageData updates the PageData with the matching terms, and similarity score. It sets the MatchingTerms and SimilarityScore fields of the PageData.
Click to show internal directories.
Click to hide internal directories.