screenshotter

package module
v0.0.0-...-4cf21a2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(enabled bool) func(*Screenshotter)

Debug enables debug output on the Screenshooter.

func Timeout

func Timeout(duration time.Duration) func(*Screenshotter)

Timeout configures a timeout for taking screenshots.

Types

type Screenshotter

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

Screenshotter takes screenshots of given webpages.

func New

func New(config ...func(*Screenshotter)) *Screenshotter

New initializes and returns a Screenshooter.

func (*Screenshotter) Take

func (ss *Screenshotter) Take(postURL url.URL, element string, w io.Writer) error

Take a screenshot of the given post.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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