Categorygithub.com/lectio/resource
modulepackage
0.0.0-20190524200617-96910fee2dab
Repository: https://github.com/lectio/resource.git
Documentation: pkg.go.dev

# Functions

DownloadFileFromHTTPResp will download the URL as an "attachment" to a local file.
NewFactory creates a new thread-safe resource factory.
No description provided by the author

# Structs

DefaultFactory is the default Content / Page creation factory.
Error is coded error for more granular tracking.
FileAttachment manages any content that was downloaded for further inspection.
InvalidHTTPRespStatusCodeError is thrown when the HTTP status code is not 200.
Page manages the content of a URL target.
PageType encapsulates the various descriptions of the kind of page / content.

# Interfaces

Attachment is a single attachment to Content (perhaps PDF or other downloaded file).
Content defines the target of a URL.
ContentDownloaderErrorPolicy is passed into options if we want to stop downloads on error.
DetectRedirectsPolicy is passed into options if we want to detect redirects inside HTML content (not just HTTP request).
Factory is a lifecycle manager for URL-based resources.
FileAttachmentCreator allows files of different types to be created.
HTTPClientProvider is passed into options if we want a custom HTTP client.
HTTPRequestPreparer is passed into options if we want to add user agent or do other HTTP request prep work.
ParseMetaDataInHTMLContentPolicy is passed into options if we want to parse HTML meta data.
Type defines the kind of content.

# Type aliases

MediaTypeParams contains what was parsed from MediaType.
MetaTags contains HTML or other content meta tag properties.