chromeengine

package
v0.0.0-...-a8c716a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserPage

type BrowserPage struct {
	// contains filtered or unexported fields
}

func (*BrowserPage) GetHTML

func (p *BrowserPage) GetHTML() string

GetHTML 获取标题

func (*BrowserPage) GetIcon

func (p *BrowserPage) GetIcon() (string, []byte, error)

GetIcon 获取Icon

func (*BrowserPage) GetTitle

func (p *BrowserPage) GetTitle() string

GetTitle 获取标题

func (*BrowserPage) ScreenshotPage

func (p *BrowserPage) ScreenshotPage(isFlag bool) (image.Image, error)

ScreenshotFullPage 截全图 isFlag: 截图增加url地址栏

type Butterfly

type Butterfly struct {
	// contains filtered or unexported fields
}

func (*Butterfly) LoadPage

func (b *Butterfly) LoadPage(ctx context.Context, urlPath string) (*BrowserPage, error)

type ButterflyOptionFunc

type ButterflyOptionFunc func(*Butterfly)

func IsDebugWithButterfly

func IsDebugWithButterfly(f bool) ButterflyOptionFunc

func SetShotQuality

func SetShotQuality(q int) ButterflyOptionFunc

[0..100]

func WithLogger

func WithLogger(logg logger.Logger) ButterflyOptionFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL