data

package
v0.0.0-...-a3ce348 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyPrefix       = `index`
	BannerRegular   = `banner`
	BannerRectangle = `banner_rect`
	Video           = `video`
	Native          = `native`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ad struct {
	ImpID      string
	CampaignID string
	CreativeID string
	Price      float64
	AdID       string
	NURL       string
	IURL       string
	AdM        string
	Adomain    map[string]interface{}
	PeCPM      float64
}

func (*Ad) CalcBidPrice

func (ad *Ad) CalcBidPrice() float64

Calculate bid price by considering revenue

type Index

type Index []Ad

func GetIndex

func GetIndex(ctx context.Context, imp *openrtb.Imp) (Index, error)

Jump to

Keyboard shortcuts

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