Moved native/request.Protocol (copied from openrtb.Protocol) to native.Protocol (for consistency)

This commit is contained in:
Max Cherry
2018-03-03 10:09:50 +02:00
parent ec6a1015f2
commit e642f66bd4
2 changed files with 9 additions and 3 deletions
@@ -1,8 +1,10 @@
package request
package native
// 5.8 Protocols (from OpenRTB spec 2.5)
//
// Options for the various bid response protocols that could be supported by an exchange.
//
// Dev note: this enum is copied to native package to allow requiring native/{request,response} in root openrtb package in future.
type Protocol int8
const (
+6 -2
View File
@@ -1,6 +1,10 @@
package request
import "encoding/json"
import (
"encoding/json"
"github.com/mxmCherry/openrtb/native"
)
// 4.5 Video Object
//
@@ -51,7 +55,7 @@ type Video struct {
// Description:
// An array of video protocols the publisher can accept in the bid response.
// See OpenRTB Table Video Bid Response Protocols for a list of possible values.
Protocols []Protocol `json:"protocols"`
Protocols []native.Protocol `json:"protocols"`
// Field:
// ext