Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Source sets target source of the In-Out. Source = func(source string) Option { return func(c *config) { c.source = source } } // Query sets CSS query for the target of In-Out. Query = func(query string) Option { return func(c *config) { c.query = query } } // WaitFor sets CSS query for the target of In-Out. WaitFor = func(query string) Option { return func(c *config) { c.waitFor = query } } // WaitUntil sets page load duration to wait for. WaitUntil = func(d time.Duration) Option { return func(c *config) { c.waitUntil = d } } // Screenshot captures screenshot, Reader will ImgBytes of the image populated. Screenshot = func(v bool) Option { return func(c *config) { c.screenshot = v } } // Timeout sets timeout for the operation. Timeout = func(timeout time.Duration) Option { return func(c *config) { c.timeout = timeout } } // Verbose enables verbose mode. Verbose = func(verbose bool) Option { return func(c *config) { c.verbose = verbose } } // UserAgent custom user agent for healess Chrome operations. UserAgent = func(ua string) Option { return func(c *config) { c.userAgent = ua } } )
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.6.0
type Option func(*config)
Option allows to customise instance of In-Out.
type Reader ¶
type Reader struct { ImgBytes []byte // contains filtered or unexported fields }
Reader - Input. This struct provides methods for reading strings and numbers from standard input, file input, URLs, and sockets.
func New ¶
New initializes an instance of Reader from STDIN, file or web page.
source - the filename or web page name, reads from STDIN if name is empty. Panics on errors.
func NewFromString ¶
NewFromString initializes an input from string.
func NewInOut ¶ added in v0.6.0
NewInOut initializes an instance of Reader from STDIN, file or web page.
source - the filename or web page name, reads from STDIN if name is empty. Panics on errors.
Click to show internal directories.
Click to hide internal directories.