Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArchive ¶
func NewArchive(req ArchivalRequest, dstPath string) error
NewArchive creates new archive based on submitted request, then save it to specified path.
Types ¶
type ArchivalRequest ¶
type ArchivalRequest struct { URL string Reader io.Reader ContentType string UserAgent string LogEnabled bool }
ArchivalRequest is request for archiving a web page, either from URL or from an io.Reader.
type Archive ¶
type Archive struct {
// contains filtered or unexported fields
}
Archive is the storage for archiving the web page.
func (*Archive) HasResource ¶
HasResource checks if the resource exists in archive.
Click to show internal directories.
Click to hide internal directories.