Involved Source Fileseasyjson.go Package headlessexperimental provides the Chrome DevTools Protocol
commands, types, and events for the HeadlessExperimental domain.
This domain provides experimental commands only supported in headless
mode.
Generated by the cdproto-gen command.types.go
Package-Level Type Names (total 4)
/* sort by: | */
BeginFrameParams sends a BeginFrame to the target and returns when the
frame was completed. Optionally captures a screenshot from the resulting
frame. Requires that the target was created with enabled BeginFrameControl.
Designed for use with --run-all-compositor-stages-before-draw, see also
https://goo.gle/chrome-headless-rendering for more background. // Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, the current time will be used. // The interval between BeginFrames that is reported to the compositor, in milliseconds. Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds. // Whether updates should not be committed and drawn onto the display. False by default. If true, only side effects of the BeginFrame will be run, such as layout and animations, but any visual updates may not be visible on the display or in screenshots. // If set, a screenshot of the frame will be captured and returned in the response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can fail, for example, during renderer initialization. In such a case, no screenshot data will be returned. Do executes HeadlessExperimental.beginFrame against the provided context.
returns:
hasDamage - Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future.
screenshotData - Base64-encoded image data of the screenshot, if one was requested and successfully taken. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithFrameTimeTicks timestamp of this BeginFrame in Renderer TimeTicks
(milliseconds of uptime). If not set, the current time will be used. WithInterval the interval between BeginFrames that is reported to the
compositor, in milliseconds. Defaults to a 60 frames/second interval, i.e.
about 16.666 milliseconds. WithNoDisplayUpdates whether updates should not be committed and drawn
onto the display. False by default. If true, only side effects of the
BeginFrame will be run, such as layout and animations, but any visual updates
may not be visible on the display or in screenshots. WithScreenshot if set, a screenshot of the frame will be captured and
returned in the response. Otherwise, no screenshot will be captured. Note
that capturing a screenshot can fail, for example, during renderer
initialization. In such a case, no screenshot data will be returned.
BeginFrameParams : github.com/goccy/go-json.Marshaler
*BeginFrameParams : github.com/goccy/go-json.Unmarshaler
BeginFrameParams : github.com/mailru/easyjson.Marshaler
*BeginFrameParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*BeginFrameParams : github.com/mailru/easyjson.Unmarshaler
BeginFrameParams : encoding/json.Marshaler
*BeginFrameParams : encoding/json.Unmarshaler
func BeginFrame() *BeginFrameParams
func BeginFrameParams.WithFrameTimeTicks(frameTimeTicks float64) *BeginFrameParams
func BeginFrameParams.WithInterval(interval float64) *BeginFrameParams
func BeginFrameParams.WithNoDisplayUpdates(noDisplayUpdates bool) *BeginFrameParams
func BeginFrameParams.WithScreenshot(screenshot *ScreenshotParams) *BeginFrameParams
BeginFrameReturns return values. // Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the display. Reported for diagnostic uses, may be removed in the future. // Base64-encoded image data of the screenshot, if one was requested and successfully taken. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface
BeginFrameReturns : github.com/goccy/go-json.Marshaler
*BeginFrameReturns : github.com/goccy/go-json.Unmarshaler
BeginFrameReturns : github.com/mailru/easyjson.Marshaler
*BeginFrameReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*BeginFrameReturns : github.com/mailru/easyjson.Unmarshaler
BeginFrameReturns : encoding/json.Marshaler
*BeginFrameReturns : encoding/json.Unmarshaler
ScreenshotParams encoding options for a screenshot.
See: https://chromedevtools.github.io/devtools-protocol/tot/HeadlessExperimental#type-ScreenshotParams // Image compression format (defaults to png). // Optimize image encoding for speed, not for resulting size (defaults to false) // Compression quality from range [0..100] (jpeg and webp only). MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface
ScreenshotParams : github.com/goccy/go-json.Marshaler
*ScreenshotParams : github.com/goccy/go-json.Unmarshaler
ScreenshotParams : github.com/mailru/easyjson.Marshaler
*ScreenshotParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*ScreenshotParams : github.com/mailru/easyjson.Unmarshaler
ScreenshotParams : encoding/json.Marshaler
*ScreenshotParams : encoding/json.Unmarshaler
func BeginFrameParams.WithScreenshot(screenshot *ScreenshotParams) *BeginFrameParams
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.