Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSkipBidRequest according to unternal reasons ErrSkipBidRequest = errors.New(`skip bid request`) // ErrNoBidRequest if no any selected ADS ErrNoBidRequest = errors.New(`nobid request`) )
Functions ¶
This section is empty.
Types ¶
type DSPPlatformAccessor ¶
type DSPPlatformAccessor interface { ListFactories() []Factory PlatformByProtocol(protocol, codename string) (Platformer, error) }
DSPPlatformAccessor provides methods access to the handlers
type Factory ¶
type Factory interface { New(ctx context.Context, accessPoint *admodels.RTBAccessPoint, opts ...any) (Platformer, error) Info() info.Platform }
Factory of the plaform object
type Platformer ¶
type Platformer interface { // ID of the access point ID() uint64 // Codename of the access point Codename() string // Protocol name of the access point Protocol() string // HTTPHandler of the raw HTTP request HTTPHandler(ctx context.Context, rctx *fasthttp.RequestCtx) adtype.Responser }
Platformer interface of the platform executor
Click to show internal directories.
Click to hide internal directories.