service

package
v0.0.0-...-dfdb652 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheOpts

type CacheOpts struct {
	TTL   time.Duration
	Fresh bool
}

type Service

type Service struct {
	Renderer renderer.Renderer
	Storage  storage.Storage
}

func (*Service) Shot

func (srv *Service) Shot(
	ctx context.Context,
	targetURL string,
	opts ShotOpts,
) (io.Reader, error)

type ShotOpts

type ShotOpts struct {
	Render renderer.Opts
	Cache  CacheOpts
}

Jump to

Keyboard shortcuts

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