Documentation ¶
Index ¶
Constants ¶
const EncodingField = "data:image/jpeg;base64,"
EncodingField tells the browser what we've encoded and how to decode it
Variables ¶
This section is empty.
Functions ¶
func GrabScreenshot ¶
GrabScreenshot returns a link to a screenshot for retrieval on localhost and and errors encountered along the way with the calling application returns fileloc, command output, error. The link will not always resolve given a protocol, e.g. http:// but more testing is needed to demonstrate this on multiple systems. If width and height are set to -1 then no resize happens on the way out of this function.
func Hello ¶
func Hello() bool
Hello enables the calling agent to determine whether the webshot service has been setup correctly. If it returns false then we can configure the agent to not call screenshots every time. It may help to reduce the setup overhead for folks wishing to run this service for themselves.
Types ¶
This section is empty.