Documentation ¶
Index ¶
- func ProcessStoredResponses(ctx context.Context, requestWrapper *openrtb_ext.RequestWrapper, ...) (ImpsWithBidResponses, ImpBidderStoredResp, BidderImpReplaceImpID, []error)
- type BidderImpReplaceImpID
- type BidderImpsWithBidResponses
- type ImpBidderReplaceImpID
- type ImpBidderStoredResp
- type ImpBiddersWithBidResponseIDs
- type ImpsWithAuctionResponseIDs
- type ImpsWithBidResponses
- type StoredResponseIDs
- type StoredResponseIdToStoredResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessStoredResponses ¶
func ProcessStoredResponses(ctx context.Context, requestWrapper *openrtb_ext.RequestWrapper, storedRespFetcher stored_requests.Fetcher) (ImpsWithBidResponses, ImpBidderStoredResp, BidderImpReplaceImpID, []error)
ProcessStoredResponses takes the incoming request as JSON with any stored requests/imps already merged into it, scans it to find any stored auction response ids and stored bid response ids in the request/imps and produces a map of imp IDs to stored auction responses and map of imp to bidder to stored response. Note that processStoredResponses must be called after processStoredRequests because stored imps and stored requests can contain stored auction responses and stored bid responses so the stored requests/imps have to be merged into the incoming request prior to processing stored auction responses.
Types ¶
type BidderImpReplaceImpID ¶
type BidderImpsWithBidResponses ¶
type BidderImpsWithBidResponses map[openrtb_ext.BidderName]map[string]json.RawMessage
func InitStoredBidResponses ¶
func InitStoredBidResponses(req *openrtb2.BidRequest, storedBidResponses ImpBidderStoredResp) BidderImpsWithBidResponses
type ImpBidderReplaceImpID ¶
type ImpBidderStoredResp ¶
type ImpBidderStoredResp map[string]map[string]json.RawMessage
type ImpsWithBidResponses ¶
type ImpsWithBidResponses map[string]json.RawMessage
type StoredResponseIDs ¶
type StoredResponseIDs []string
type StoredResponseIdToStoredResponse ¶
type StoredResponseIdToStoredResponse map[string]json.RawMessage
Click to show internal directories.
Click to hide internal directories.