renderer

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

**************************************************************************

  • COPYRIGHT (C) 2018, Rapid7 LLC, Boston, MA, USA.
  • All rights reserved. This material contains unpublished, copyrighted
  • work including confidential and proprietary information of Rapid7. *************************************************************************

Index

Constants

View Source
const DEFAULT_PRINT_DEADLINE = "5m"
View Source
const DEFAULT_REQUEST_POLL_INTERVAL = "1s"
View Source
const DEFAULT_REQUEST_POLL_RETRIES = 10

Variables

This section is empty.

Functions

func CreatePdf

func CreatePdf(ctx context.Context, request GeneratePdfRequest) ([]byte, []byte, error)

Types

type GeneratePdfRequest

type GeneratePdfRequest struct {
	CorrelationId   string            `json:"correlationId"`
	TargetUrl       string            `json:"targetUrl"`
	Headers         map[string]string `json:"headers,omitempty"`
	Orientation     string            `json:"orientation"`
	PrintBackground bool              `json:"printBackground"`
	MarginTop       float64           `json:"marginTop"`
	MarginRight     float64           `json:"marginRight"`
	MarginBottom    float64           `json:"marginBottom"`
	MarginLeft      float64           `json:"marginLeft"`
}

func DefaultGeneratePdfRequest

func DefaultGeneratePdfRequest() GeneratePdfRequest

type ResponseSummary added in v0.1.5

type ResponseSummary struct {
	URL        string `json:"url"`
	Status     int    `json:"status"`
	StatusText string `json:"statusText"`
}

Jump to

Keyboard shortcuts

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