Documentation ¶
Index ¶
- Constants
- func CloneBidRequestPartial(s *openrtb2.BidRequest) *openrtb2.BidRequest
- func CloneBrandVersion(s *openrtb2.BrandVersion) *openrtb2.BrandVersion
- func CloneBrandVersionSlice(s []openrtb2.BrandVersion) []openrtb2.BrandVersion
- func CloneData(s openrtb2.Data) openrtb2.Data
- func CloneDataSlice(s []openrtb2.Data) []openrtb2.Data
- func CloneDevice(s *openrtb2.Device) *openrtb2.Device
- func CloneEID(s openrtb2.EID) openrtb2.EID
- func CloneEIDSlice(s []openrtb2.EID) []openrtb2.EID
- func CloneGeo(s *openrtb2.Geo) *openrtb2.Geo
- func CloneSChain(s *openrtb2.SupplyChain) *openrtb2.SupplyChain
- func CloneSegment(s openrtb2.Segment) openrtb2.Segment
- func CloneSegmentSlice(s []openrtb2.Segment) []openrtb2.Segment
- func CloneSource(s *openrtb2.Source) *openrtb2.Source
- func CloneSupplyChainNode(s openrtb2.SupplyChainNode) openrtb2.SupplyChainNode
- func CloneSupplyChainNodes(s []openrtb2.SupplyChainNode) []openrtb2.SupplyChainNode
- func CloneUID(s openrtb2.UID) openrtb2.UID
- func CloneUIDSlice(s []openrtb2.UID) []openrtb2.UID
- func CloneUser(s *openrtb2.User) *openrtb2.User
- func CloneUserAgent(s *openrtb2.UserAgent) *openrtb2.UserAgent
- func SetDefaults(r *openrtb_ext.RequestWrapper) error
- type RequestValidator
- type ValidationConfig
Constants ¶
View Source
const ( DefaultPriceGranularityPrecision = 2 DefaultTargetingIncludeWinners = true DefaultTargetingIncludeBidderKeys = true DefaultSecure = int8(1) )
Variables ¶
This section is empty.
Functions ¶
func CloneBidRequestPartial ¶ added in v2.6.0
func CloneBidRequestPartial(s *openrtb2.BidRequest) *openrtb2.BidRequest
CloneBidRequestPartial performs a deep clone of just the bid request device, user, and source fields.
func CloneBrandVersion ¶ added in v2.1.0
func CloneBrandVersion(s *openrtb2.BrandVersion) *openrtb2.BrandVersion
func CloneBrandVersionSlice ¶ added in v2.1.0
func CloneBrandVersionSlice(s []openrtb2.BrandVersion) []openrtb2.BrandVersion
func CloneSChain ¶ added in v2.1.0
func CloneSChain(s *openrtb2.SupplyChain) *openrtb2.SupplyChain
func CloneSupplyChainNode ¶ added in v2.1.0
func CloneSupplyChainNode(s openrtb2.SupplyChainNode) openrtb2.SupplyChainNode
func CloneSupplyChainNodes ¶ added in v2.1.0
func CloneSupplyChainNodes(s []openrtb2.SupplyChainNode) []openrtb2.SupplyChainNode
func CloneUserAgent ¶ added in v2.1.0
func SetDefaults ¶
func SetDefaults(r *openrtb_ext.RequestWrapper) error
Types ¶
type RequestValidator ¶ added in v2.20.0
type RequestValidator interface {
ValidateImp(imp *openrtb_ext.ImpWrapper, cfg ValidationConfig, index int, aliases map[string]string, hasStoredAuctionResponses bool, storedBidResponses stored_responses.ImpBidderStoredResp) []error
}
func NewRequestValidator ¶ added in v2.20.0
func NewRequestValidator(bidderMap map[string]openrtb_ext.BidderName, disabledBidders map[string]string, paramsValidator openrtb_ext.BidderParamValidator) RequestValidator
type ValidationConfig ¶ added in v2.20.0
Click to show internal directories.
Click to hide internal directories.