amp

package
v0.180.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Account         string
	CanonicalURL    string
	Consent         string
	Debug           bool
	Origin          string
	Size            Size
	Slot            string
	StoredRequestID string
	Timeout         *uint64
}

Params defines the paramters of an AMP request.

func ParseParams

func ParseParams(httpRequest *http.Request) (Params, error)

ParseParams parses the AMP paramters from a HTTP request.

type Size

type Size struct {
	Height         int64
	Multisize      []openrtb2.Format
	OverrideHeight int64
	OverrideWidth  int64
	Width          int64
}

Size defines size information of an AMP request.

Jump to

Keyboard shortcuts

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