Versions in this module Expand all Collapse all v3 v3.1.0 Oct 31, 2024 Changes in this version + type AccountFetcher interface + FetchAccount func(ctx context.Context, accountDefaultJSON json.RawMessage, accountID string) (json.RawMessage, []error) + type AllFetcher interface + func WithCache(fetcher AllFetcher, cache Cache, metricsEngine metrics.MetricsEngine) AllFetcher + type Cache struct + Accounts CacheJSON + Imps CacheJSON + Requests CacheJSON + Responses CacheJSON + type CacheJSON interface + Get func(ctx context.Context, ids []string) (data map[string]json.RawMessage) + Invalidate func(ctx context.Context, ids []string) + Save func(ctx context.Context, data map[string]json.RawMessage) + type Category struct + Id string + Name string + type CategoryFetcher interface + FetchCategories func(ctx context.Context, primaryAdServer, publisherId, iabCategory string) (string, error) + type ComposedCache []CacheJSON + func (c ComposedCache) Get(ctx context.Context, ids []string) (data map[string]json.RawMessage) + func (c ComposedCache) Invalidate(ctx context.Context, ids []string) + func (c ComposedCache) Save(ctx context.Context, data map[string]json.RawMessage) + type Fetcher interface + FetchRequests func(ctx context.Context, requestIDs []string, impIDs []string) (requestData map[string]json.RawMessage, impData map[string]json.RawMessage, ...) + FetchResponses func(ctx context.Context, ids []string) (data map[string]json.RawMessage, errs []error) + type MultiFetcher []AllFetcher + func (mf MultiFetcher) FetchAccount(ctx context.Context, accountDefaultJSON json.RawMessage, accountID string) (account json.RawMessage, errs []error) + func (mf MultiFetcher) FetchCategories(ctx context.Context, primaryAdServer, publisherId, iabCategory string) (string, error) + func (mf MultiFetcher) FetchRequests(ctx context.Context, requestIDs []string, impIDs []string) (requestData map[string]json.RawMessage, impData map[string]json.RawMessage, ...) + func (mf MultiFetcher) FetchResponses(ctx context.Context, ids []string) (data map[string]json.RawMessage, errs []error) + type NotFoundError struct + DataType string + ID string + func (e NotFoundError) Error() string Other modules containing this package github.com/prebid/prebid-server github.com/prebid/prebid-server/v2