Documentation ¶
Index ¶
- Variables
- func HTTPBodyReader(requestDetails HttpRequestDetails) (io.ReadCloser, error)
- func HTTPBodySource(requestDetails HttpRequestDetails) (*_HTTPSource, error)
- func HTTPMJPEGReader(requestDetails HttpRequestDetails, boundary string) (io.ReadCloser, error)
- func NewScreenshotAsJPEG() (io.Reader, error)
- func NewWhiteNoiseAsJPEG(x, y int) (io.Reader, error)
- type Fetcher
- type FetcherFunc
- type HttpRequestDetails
- type Screenshotter
- type WhiteNoiseGenerator
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FetchTimeout = time.Second * 5 TimeBetween = time.Millisecond * 500 )
Functions ¶
func HTTPBodyReader ¶
func HTTPBodyReader(requestDetails HttpRequestDetails) (io.ReadCloser, error)
func HTTPBodySource ¶
func HTTPBodySource(requestDetails HttpRequestDetails) (*_HTTPSource, error)
func HTTPMJPEGReader ¶
func HTTPMJPEGReader(requestDetails HttpRequestDetails, boundary string) (io.ReadCloser, error)
func NewScreenshotAsJPEG ¶
Types ¶
type FetcherFunc ¶
func MakeFetcher ¶
func MakeFetcher(f func() (io.Reader, error)) FetcherFunc
type HttpRequestDetails ¶
This could possible use net.URL
type Screenshotter ¶
type Screenshotter struct { }
func NewScreenshotter ¶
func NewScreenshotter() *Screenshotter
type WhiteNoiseGenerator ¶
func NewWhiteNoiseGenerator ¶
func NewWhiteNoiseGenerator(x, y int) *WhiteNoiseGenerator
Click to show internal directories.
Click to hide internal directories.