Versions in this module Expand all Collapse all v0 v0.1.1 Oct 17, 2019 Changes in this version + const CommandBeginFrame + const CommandDisable + const CommandEnable + type BeginFrameParams struct + FrameTimeTicks float64 + Interval float64 + NoDisplayUpdates bool + Screenshot *ScreenshotParams + func BeginFrame() *BeginFrameParams + func (p *BeginFrameParams) Do(ctx context.Context) (hasDamage bool, screenshotData []byte, err error) + func (p BeginFrameParams) WithFrameTimeTicks(frameTimeTicks float64) *BeginFrameParams + func (p BeginFrameParams) WithInterval(interval float64) *BeginFrameParams + func (p BeginFrameParams) WithNoDisplayUpdates(noDisplayUpdates bool) *BeginFrameParams + func (p BeginFrameParams) WithScreenshot(screenshot *ScreenshotParams) *BeginFrameParams + func (v *BeginFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *BeginFrameParams) UnmarshalJSON(data []byte) error + func (v BeginFrameParams) MarshalEasyJSON(w *jwriter.Writer) + func (v BeginFrameParams) MarshalJSON() ([]byte, error) + type BeginFrameReturns struct + HasDamage bool + ScreenshotData string + func (v *BeginFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *BeginFrameReturns) UnmarshalJSON(data []byte) error + func (v BeginFrameReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v BeginFrameReturns) MarshalJSON() ([]byte, error) + type DisableParams struct + func Disable() *DisableParams + func (p *DisableParams) Do(ctx context.Context) (err error) + func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DisableParams) UnmarshalJSON(data []byte) error + func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DisableParams) MarshalJSON() ([]byte, error) + type EnableParams struct + func Enable() *EnableParams + func (p *EnableParams) Do(ctx context.Context) (err error) + func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EnableParams) UnmarshalJSON(data []byte) error + func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v EnableParams) MarshalJSON() ([]byte, error) + type ScreenshotParams struct + Format ScreenshotParamsFormat + Quality int64 + func (v *ScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ScreenshotParams) UnmarshalJSON(data []byte) error + func (v ScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ScreenshotParams) MarshalJSON() ([]byte, error) + type ScreenshotParamsFormat string + const ScreenshotParamsFormatJpeg + const ScreenshotParamsFormatPng + func (t *ScreenshotParamsFormat) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *ScreenshotParamsFormat) UnmarshalJSON(buf []byte) error + func (t ScreenshotParamsFormat) MarshalEasyJSON(out *jwriter.Writer) + func (t ScreenshotParamsFormat) MarshalJSON() ([]byte, error) + func (t ScreenshotParamsFormat) String() string