webpage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(key string) *Client

func (*Client) Image

func (c *Client) Image(req *ImageRequest) (*ImageResponse, error)

func (*Client) PDF

func (c *Client) PDF(req *PDFRequest) (*PDFResponse, error)

type ImageRequest

type ImageRequest struct {
	URL      string
	Language string
	TTL      int
	FullPage bool
	Retina   bool
	Width    int
	Height   int
	Delay    int
}

type ImageResponse

type ImageResponse struct {
	Image       string `json:"image"`
	Cached      bool   `json:"cached"`
	Took        int    `json:"took"`
	GeneratedAt string `json:"generated_at"`
}

type PDFRequest

type PDFRequest struct {
	URL         string
	Language    string
	TTL         int
	Size        string
	Width       int
	Height      int
	Orientation string
	Delay       int
}

type PDFResponse

type PDFResponse struct {
	PDF         string `json:"pdf"`
	Cached      bool   `json:"cached"`
	Took        int    `json:"took"`
	GeneratedAt string `json:"generated_at"`
}

Jump to

Keyboard shortcuts

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