urlproperties

package
v0.0.0-...-e5131f1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPropertiesFile = "mods/webpages-properties.json"

Variables

This section is empty.

Functions

func Init

func Init(propertiesFiles []string) (err error)

Types

type URLProperties

type URLProperties struct {
	Path string
	// this file is merged with global css rules and passed to wkhtmltopdf
	CssOverrideFile string
	// these options are passed to the wkhtmltopdf object
	// could be used for overriding default ones in this repository
	ObjectOptions *json.RawMessage
	// these options are passed to the wkhtmltopdf converter
	// could be used for overriding default ones in this repository
	ConverterOptions *json.RawMessage
}

func SetURLProperties

func SetURLProperties(url string) (properties *URLProperties, err error)

Jump to

Keyboard shortcuts

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