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
// The page that was requested by the caller
OriginalURL string `json:",omitempty"`
TTL *time.Duration `json:"-"`
// When the returned source was fetched
FetchTime *time.Time `json:",omitempty"`
StatusCode int `json:",omitempty"`
Error error `json:"-"`
ContentText string `json:",omitempty"`
// The url that was requested by whatever locally was fetching: allows
// for something downstream from OriginalURL to filter query params
RequestedURL *nurl.URL `json:"-"`
// contains filtered or unexported fields
}
func (*WebPage) AssertTimes ¶ added in v0.6.5
func (r *WebPage) AssertTimes()
func (WebPage) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.