Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultTTL = 30 * 24 * time.Hour
)
Functions ¶
Types ¶
type WebPage ¶
type WebPage struct {
trafilatura.Metadata
OriginalURL string `json:"original_url,omitempty"` // The page that was requested by the caller
RequestedURL *nurl.URL `json:"-"` // The page that was actually fetched
TTL *time.Duration `json:"-"`
FetchTime *time.Time `json:"fetch_time,omitempty"` // When the returned source was fetched
StatusCode int `json:"status_code,omitempty"`
Error error `json:"-"`
ContentText string `json:"content_text,omitempty"`
// contains filtered or unexported fields
}
func (*WebPage) AssertTimes ¶ added in v0.6.5
func (r *WebPage) AssertTimes()
func (WebPage) MarshalJSON ¶
func (*WebPage) UnmarshalJSON ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.