prebid_cache_client

package
v0.0.0-...-018946c Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPrebidCache

func InitPrebidCache(baseurl string)

InitPrebidCache setup the global prebid cache

func Put

func Put(ctx context.Context, objs []*CacheObject) error

Put will send the array of objs and update each with a UUID

Types

type BidCache

type BidCache struct {
	Adm    string `json:"adm,omitempty"`
	NURL   string `json:"nurl,omitempty"`
	Width  uint64 `json:"width,omitempty"`
	Height uint64 `json:"height,omitempty"`
}

type CacheObject

type CacheObject struct {
	Value   interface{}
	UUID    string
	IsVideo bool
}

type Client

type Client interface {
	// PutJson stores JSON values for the given openrtb.Bids in the cache. Null values will be
	//
	// The returned string slice will always have the same number of elements as the values argument. If a
	// value could not be saved, the element will be an empty string. Implementations are responsible for
	// logging any relevant errors to the app logs
	PutJson(ctx context.Context, values []json.RawMessage) []string
}

Client stores values in Prebid Cache. For more info, see https://github.com/prebid/prebid-cache

func NewClient

func NewClient(conf *config.Cache) Client

Jump to

Keyboard shortcuts

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