Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { CMD string Host string URL string AcceptLanguage string UserAgent string ProfileDir string FullPage bool IsJPEG bool RandomProfileDir bool Port int WindowWidth int WindowHight int PaddingTop int PaddingBottom int PaddingLeft int PaddingRight int JpegQuality int Wait time.Duration Deadline time.Duration }
Config - options for URL screenshot function.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig - creates structure with default values.
func (*Config) CDPScreenshot ¶
CDPScreenshot - low-level function that creates screenshot for URL using CDP.
func (*Config) KillByPgidAndCleanup ¶
KillByPgidAndCleanup - kills CDP process and remove randomly created profile directory.
func (*Config) Screenshot ¶
Screenshot - makes screenshot for URL, returns base64 encoded slice bytes and raw slice bytes.
Click to show internal directories.
Click to hide internal directories.