template

package
v0.0.0-...-623499b Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Handler is the OpenRTB 2.5 templated test bidder

Types

type Template

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

Template stores all the templates loaded

func NewTemplate

func NewTemplate(dir string, name string) *Template

NewTemplate loads and configures a new template from dir

func (*Template) String

func (t *Template) String() string

type TestParams

type TestParams struct {
	// Delay for tmax milliseconds before returning the response
	TMax int `json:"tmax,omitempty"`
}

TestParams schema for parameters for controlling test bidder responses

func ReadTestParams

func ReadTestParams(bidRequest *openrtb2.BidRequest) (params TestParams)

ReadTestParams reads bidder params from site/app.ext (because the adapter may not pass ext entirely)

Jump to

Keyboard shortcuts

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