Documentation
¶
Index ¶
- Variables
- type Adapter
- type AppNexusAdapter
- type FacebookAdapter
- func (a *FacebookAdapter) Call(ctx context.Context, req *pbs.PBSRequest, bidder *pbs.PBSBidder) (pbs.PBSBidSlice, error)
- func (a *FacebookAdapter) CallOne(ctx context.Context, req *pbs.PBSRequest, reqJSON bytes.Buffer) (result fbResult, err error)
- func (a *FacebookAdapter) FamilyName() string
- func (a *FacebookAdapter) GetUsersyncInfo() *pbs.UsersyncInfo
- func (a *FacebookAdapter) Name() string
- func (a *FacebookAdapter) SplitAdUnits() bool
- type HTTPAdapter
- type HTTPAdapterConfig
- type IndexAdapter
- type PubmaticAdapter
- type PulsePointAdapter
- type PulsepointParams
- type RubiconAdapter
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHTTPAdapterConfig = &HTTPAdapterConfig{ MaxConns: 50, MaxConnsPerHost: 10, MaxIdleConnsPerHost: 3, IdleConnTimeout: 60 * time.Second, }
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
Name() string
FamilyName() string
GetUsersyncInfo() *pbs.UsersyncInfo
Call(ctx context.Context, req *pbs.PBSRequest, bidder *pbs.PBSBidder) (pbs.PBSBidSlice, error)
}
type AppNexusAdapter ¶
type AppNexusAdapter struct {
URI string
// contains filtered or unexported fields
}
func NewAppNexusAdapter ¶
func NewAppNexusAdapter(config *HTTPAdapterConfig, externalURL string) *AppNexusAdapter
func (*AppNexusAdapter) Call ¶
func (a *AppNexusAdapter) Call(ctx context.Context, req *pbs.PBSRequest, bidder *pbs.PBSBidder) (pbs.PBSBidSlice, error)
func (*AppNexusAdapter) FamilyName ¶
func (a *AppNexusAdapter) FamilyName() string
used for cookies and such
func (*AppNexusAdapter) GetUsersyncInfo ¶
func (a *AppNexusAdapter) GetUsersyncInfo() *pbs.UsersyncInfo
type FacebookAdapter ¶
type FacebookAdapter struct {
URI string
// contains filtered or unexported fields
}
func NewFacebookAdapter ¶
func NewFacebookAdapter(config *HTTPAdapterConfig, partnerID string, usersyncURL string) *FacebookAdapter
func (*FacebookAdapter) Call ¶
func (a *FacebookAdapter) Call(ctx context.Context, req *pbs.PBSRequest, bidder *pbs.PBSBidder) (pbs.PBSBidSlice, error)
func (*FacebookAdapter) CallOne ¶
func (a *FacebookAdapter) CallOne(ctx context.Context, req *pbs.PBSRequest, reqJSON bytes.Buffer) (result fbResult, err error)
func (*FacebookAdapter) FamilyName ¶
func (a *FacebookAdapter) FamilyName() string
used for cookies and such
func (*FacebookAdapter) GetUsersyncInfo ¶
func (a *FacebookAdapter) GetUsersyncInfo() *pbs.UsersyncInfo
func (*FacebookAdapter) SplitAdUnits ¶
func (a *FacebookAdapter) SplitAdUnits() bool
Facebook likes to parallelize to minimize latency
type HTTPAdapter ¶
func NewHTTPAdapter ¶
func NewHTTPAdapter(c *HTTPAdapterConfig) *HTTPAdapter
type HTTPAdapterConfig ¶
type IndexAdapter ¶
type IndexAdapter struct {
URI string
// contains filtered or unexported fields
}
func NewIndexAdapter ¶
func NewIndexAdapter(config *HTTPAdapterConfig, externalURL string) *IndexAdapter
func (*IndexAdapter) Call ¶
func (a *IndexAdapter) Call(ctx context.Context, req *pbs.PBSRequest, bidder *pbs.PBSBidder) (pbs.PBSBidSlice, error)
func (*IndexAdapter) FamilyName ¶
func (a *IndexAdapter) FamilyName() string
used for cookies and such
func (*IndexAdapter) GetUsersyncInfo ¶
func (a *IndexAdapter) GetUsersyncInfo() *pbs.UsersyncInfo
type PubmaticAdapter ¶
type PubmaticAdapter struct {
URI string
// contains filtered or unexported fields
}
func NewPubmaticAdapter ¶
func NewPubmaticAdapter(config *HTTPAdapterConfig, uri string, externalURL string) *PubmaticAdapter
func (*PubmaticAdapter) Call ¶
func (a *PubmaticAdapter) Call(ctx context.Context, req *pbs.PBSRequest, bidder *pbs.PBSBidder) (pbs.PBSBidSlice, error)
func (*PubmaticAdapter) FamilyName ¶
func (a *PubmaticAdapter) FamilyName() string
used for cookies and such
func (*PubmaticAdapter) GetUsersyncInfo ¶
func (a *PubmaticAdapter) GetUsersyncInfo() *pbs.UsersyncInfo
type PulsePointAdapter ¶
type PulsePointAdapter struct {
URI string
// contains filtered or unexported fields
}
func NewPulsePointAdapter ¶
func NewPulsePointAdapter(config *HTTPAdapterConfig, uri string, externalURL string) *PulsePointAdapter
func (*PulsePointAdapter) Call ¶
func (a *PulsePointAdapter) Call(ctx context.Context, req *pbs.PBSRequest, bidder *pbs.PBSBidder) (pbs.PBSBidSlice, error)
func (*PulsePointAdapter) FamilyName ¶
func (a *PulsePointAdapter) FamilyName() string
used for cookies and such
func (*PulsePointAdapter) GetUsersyncInfo ¶
func (a *PulsePointAdapter) GetUsersyncInfo() *pbs.UsersyncInfo
type PulsepointParams ¶
type PulsepointParams struct {
PublisherId int `json:"cp"`
TagId int `json:"ct"`
AdSize string `json:"cf"`
}
parameters for pulsepoint adapter.
type RubiconAdapter ¶
type RubiconAdapter struct {
URI string
XAPIUsername string
XAPIPassword string
// contains filtered or unexported fields
}
func NewRubiconAdapter ¶
func NewRubiconAdapter(config *HTTPAdapterConfig, uri string, xuser string, xpass string, usersyncURL string) *RubiconAdapter
func (*RubiconAdapter) Call ¶
func (a *RubiconAdapter) Call(ctx context.Context, req *pbs.PBSRequest, bidder *pbs.PBSBidder) (pbs.PBSBidSlice, error)
func (*RubiconAdapter) FamilyName ¶
func (a *RubiconAdapter) FamilyName() string
used for cookies and such
func (*RubiconAdapter) GetUsersyncInfo ¶
func (a *RubiconAdapter) GetUsersyncInfo() *pbs.UsersyncInfo
Click to show internal directories.
Click to hide internal directories.