Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChromeRunner ¶
type ChromeRunner struct { Options *config.Options ChromeDevToolsRunner func(ctx context.Context, actions ...chromedp.Action) error }
ChromeRunner is a wrapper around chromedp.run
func (*ChromeRunner) GeneratePDFData ¶
func (chromeRunner *ChromeRunner) GeneratePDFData() (buf []byte, err error)
Generates the PDF data
type ChromeRunnerInterface ¶
type File ¶
type File struct {
Filename string
}
File handles writing the PDF to disk, and implements the io.Writer interface
type FromURIGenerator ¶
type FromURIGenerator struct { ChromeRunner ChromeRunnerInterface FileWriter io.Writer }
FromURIGenerator represents a PDF writer that takes a URI as its input
func (*FromURIGenerator) Generate ¶
func (fromURIGenerator *FromURIGenerator) Generate() error
Click to show internal directories.
Click to hide internal directories.