endpoints

package
v0.187.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 23 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCurrencyRatesEndpoint

func NewCurrencyRatesEndpoint(rateConverter rateConverter, fetchingInterval time.Duration) http.HandlerFunc

NewCurrencyRatesEndpoint returns current currency rates applied by the PBS server.

func NewGetUIDsEndpoint

func NewGetUIDsEndpoint(cfg config.HostCookie) httprouter.Handle

NewGetUIDsEndpoint implements the /getuid endpoint which returns all the existing syncs for the user

func NewSetUIDEndpoint

func NewSetUIDEndpoint(cfg config.HostCookie, syncersByBidder map[string]usersync.Syncer, perms gdpr.Permissions, pbsanalytics analytics.PBSAnalyticsModule, metricsEngine metrics.MetricsEngine) httprouter.Handle

func NewStatusEndpoint

func NewStatusEndpoint(response string) httprouter.Handle

NewStatusEndpoint returns a handler which writes the given response when the app is ready to serve requests.

func NewVersionEndpoint

func NewVersionEndpoint(version, revision string) http.HandlerFunc

NewVersionEndpoint returns the latest git tag as the version and commit hash as the revision from which the binary was built

Types

type HTTPRouterHandler added in v0.173.0

type HTTPRouterHandler interface {
	Handle(http.ResponseWriter, *http.Request, httprouter.Params)
}

func NewCookieSyncEndpoint

func NewCookieSyncEndpoint(
	syncersByBidder map[string]usersync.Syncer,
	config *config.Configuration,
	gdprPermissions gdpr.Permissions,
	metrics metrics.MetricsEngine,
	pbsAnalytics analytics.PBSAnalyticsModule,
	bidders map[string]openrtb_ext.BidderName) HTTPRouterHandler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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