archiver

package
v0.0.0-...-02e7294 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archiver

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

func NewArchiver

func NewArchiver(opts ...Option) (*Archiver, error)

func (*Archiver) Capture

func (c *Archiver) Capture(
	ctx context.Context,
	requestURL string,
	output outputs.Output,
	opts ...CaptureOption,
)

func (*Archiver) Close

func (c *Archiver) Close() error

type CaptureOption

type CaptureOption interface {
	// contains filtered or unexported methods
}

func WithScreenshot

func WithScreenshot(screenshotFunc func([]byte) error) CaptureOption

type Option

type Option interface {
	// contains filtered or unexported methods
}

type SharedOption

type SharedOption interface {
	Option
	CaptureOption
}

func WithReporter

func WithReporter(reporter progress.Reporter) SharedOption

func WithUserAgent

func WithUserAgent(ua string) SharedOption

Jump to

Keyboard shortcuts

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