github.com/prebid/prebid-server@v0.275.0/adapters/yieldlab/types.go (about) 1 package yieldlab 2 3 import ( 4 "strconv" 5 "time" 6 ) 7 8 type bidResponse struct { 9 ID uint64 `json:"id"` 10 Price uint `json:"price"` 11 Advertiser string `json:"advertiser"` 12 Adsize string `json:"adsize"` 13 Pid uint64 `json:"pid"` 14 Did uint64 `json:"did"` 15 Pvid string `json:"pvid"` 16 } 17 18 type cacheBuster func() string 19 20 type weekGenerator func() string 21 22 var defaultCacheBuster cacheBuster = func() string { 23 return strconv.FormatInt(time.Now().Unix(), 10) 24 } 25 26 var defaultWeekGenerator weekGenerator = func() string { 27 _, week := time.Now().ISOWeek() 28 return strconv.Itoa(week) 29 }