-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
25 lines (21 loc) · 749 Bytes
/
types.go
File metadata and controls
25 lines (21 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package adsourceopenrtb
import (
"errors"
"github.com/geniusrabbit/adcorelib/admodels"
"github.com/geniusrabbit/adcorelib/adtype"
)
// Request type enum
const (
RequestTypeUndefined = admodels.RTBRequestTypeUndefined
RequestTypeJSON = admodels.RTBRequestTypeJSON
RequestTypeXML = admodels.RTBRequestTypeXML
RequestTypeProtobuff = admodels.RTBRequestTypeProtoBUFF
RequestTypePOSTFormEncoded = admodels.RTBRequestTypePOSTFormEncoded
RequestTypePlain = admodels.RTBRequestTypePLAINTEXT
)
// Errors set
var (
ErrResponseAreNotSecure = errors.New("response are not secure")
ErrInvalidResponseStatus = errors.New("invalid response status")
ErrResponseNoBid = adtype.ErrResponseNoBid
)