accesspoint

package
v0.0.0-...-6a3b762 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: AGPL-3.0 Imports: 6 Imported by: 2

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL