Documentation ¶
Overview ¶
Package reduxer implements a set of functions to transform webpage to various formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶ added in v0.17.0
type Artifact struct {
Img, PDF, Raw, Txt, HAR, HTM, WARC, Media Asset
}
Artifact represents the file paths stored on the local disk.
type Reduxer ¶ added in v0.17.0
Reduxer is the interface that wraps the basic reduxer method.
Store sets the *bundle for a Src.
Load returns the data stored in the map for a Src, or nil if no value is present. The ok result indicates whether value was found in the map.
Flush erases all bundles from the cache.
func BundleExample ¶ added in v0.17.0
func BundleExample() Reduxer
func Do ¶
Do executes secreenshot, print PDF and export html of given URLs Returns a set of bundle containing screenshot data and file path nolint:gocyclo
func NewReduxer ¶ added in v0.17.0
func NewReduxer() Reduxer
NewReduxer returns a Reduxer has been initialized.
Click to show internal directories.
Click to hide internal directories.