ssf

package module
v0.0.0-...-c9b5871 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 6 Imported by: 0

README

SSF (Screenshot Factory)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

func NewFactory

func NewFactory(init InitFactory) (*Factory, func(), error)

func (*Factory) MakeScreenshot

func (f *Factory) MakeScreenshot(p MakeScreenshotPayload)

func (*Factory) RunFactory

func (f *Factory) RunFactory() error

type InitFactory

type InitFactory struct {
	WebdriverPort uint16

	UseBrowser string

	FirefoxBinaryPath string
	FirefoxArgs       []string
	GeckodriverPath   string

	ChromeBinaryPath string
	ChromeArgs       []string
	ChromedriverPath string

	WorkersCount uint8
}

type MakeScreenshotPayload

type MakeScreenshotPayload struct {
	URL            string
	DOMElementBy   string
	DOMElementName string
	Scroll         bool
	MaximizeWindow *string
	Timeout        time.Duration
	BytesHandler   bytesHandler
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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