Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Input ¶
type Input struct { URL string `json:"url" query:"url" form:"url"` WaitFor string `json:"wait_for" query:"wait_for" form:"wait_for"` MaxExecTime int `json:"max_exec_time" query:"max_exec_time" form:"max_exec_time"` ViewportWidth int64 `json:"viewport_width" query:"viewport_width" form:"viewport_width"` ViewportHeight int64 `json:"viewport_height" query:"viewport_height" form:"viewport_height"` OutputFormat OutputFormat `json:"format" query:"format" form:"format"` PNGFullPage bool `json:"png_full_page" query:"png_full_page" form:"png_full_page"` PDFLandscape bool `json:"pdf_landscape" query:"pdf_landscape" form:"pdf_landscape"` PDFPrintBackground bool `json:"pdf_print_background" query:"pdf_print_background" form:"pdf_print_background"` PDFPaperHeight float64 `json:"pdf_paper_height" query:"pdf_paper_height" form:"pdf_paper_height"` PDFPaperWidth float64 `json:"pdf_paper_width" query:"pdf_paper_width" form:"pdf_paper_width"` ScrollStep int64 `json:"scroll_step" query:"scroll_step" form:"scroll_step"` ScrollDelay string `json:"scroll_delay" query:"scroll_delay" form:"scroll_delay"` ScrollTimes int64 `json:"scroll_times" query:"scroll_times" form:"scroll_times"` }
Input represents a Katch input
type OutputFormat ¶
type OutputFormat string
OutputFormat represents a requested format
const ( OutputFormatPDF OutputFormat = "pdf" OutputFormatPNG OutputFormat = "png" OutputFormatHTML OutputFormat = "html" )
available output formats
Click to show internal directories.
Click to hide internal directories.