Versions in this module Expand all Collapse all v0 v0.1.0 Nov 15, 2026 Changes in this version + var ErrBidRequestNil = errors.New("bid request is nil") + var ErrCategoryIsNotMatched = errors.New("category is not matched") + type AdFormats struct + func (a *AdFormats) Add(format *types.Format) bool + func (a *AdFormats) Bitset() *searchtypes.NumberBitset[uint] + func (a *AdFormats) List() []*types.Format + func (a *AdFormats) Reset() + func (a *AdFormats) TypeMask() types.FormatTypeBitset + type BidRequest struct + AccessPointLnk adtype.AccessPoint + App *udetect.App + AppTarget *admodels.Application + AucType types.AuctionType + Ctx context.Context + Debug bool + Device *udetect.Device + Ext map[string]any + ExtID string + IDVal string + Imps []*adtype.Impression + Person personification.Person + Request any + RequestCtx *fasthttp.RequestCtx + Site *udetect.Site + StateFlags BidRequestFlags + Timemark time.Time + Tracer any + User *adtype.User + func (r *BidRequest) AccessPoint() adtype.AccessPoint + func (r *BidRequest) Age() uint + func (r *BidRequest) AppID() uint64 + func (r *BidRequest) AppInfo() *udetect.App + func (r *BidRequest) AuctionID() string + func (r *BidRequest) AuctionType() types.AuctionType + func (r *BidRequest) BrowserInfo() *udetect.Browser + func (r *BidRequest) CarrierInfo() *udetect.Carrier + func (r *BidRequest) CategoryCodes() []string + func (r *BidRequest) CategoryIDs() []uint64 + func (r *BidRequest) Clone() *BidRequest + func (r *BidRequest) Context() context.Context + func (r *BidRequest) CurrentGeoTime() time.Time + func (r *BidRequest) DeviceInfo() *udetect.Device + func (r *BidRequest) Domain() []string + func (r *BidRequest) DomainName() string + func (r *BidRequest) Done() <-chan struct{} + func (r *BidRequest) ExtTargetIDs() []string + func (r *BidRequest) ExternalAuctionID() string + func (r *BidRequest) ExternalID() string + func (r *BidRequest) Formats() types.BidFormater + func (r *BidRequest) GeoID() uint64 + func (r *BidRequest) GeoInfo() *udetect.Geo + func (r *BidRequest) Get(key string) any + func (r *BidRequest) HTTPRequest() *fasthttp.RequestCtx + func (r *BidRequest) ID() string + func (r *BidRequest) ImpressionByID(id string) *adtype.Impression + func (r *BidRequest) ImpressionUpdate(fn func(imp *adtype.Impression) bool) + func (r *BidRequest) Impressions() []*adtype.Impression + func (r *BidRequest) IsAdBlock() bool + func (r *BidRequest) IsDebug() bool + func (r *BidRequest) IsIPv6() bool + func (r *BidRequest) IsNil() bool + func (r *BidRequest) IsPrivateBrowsing() bool + func (r *BidRequest) IsProxy() bool + func (r *BidRequest) IsRobot() bool + func (r *BidRequest) IsSecure() bool + func (r *BidRequest) Keywords() []string + func (r *BidRequest) LanguageID() uint64 + func (r *BidRequest) MinECPM() (minBid billing.Money) + func (r *BidRequest) OSInfo() *udetect.OS + func (r *BidRequest) PrepareRequest(defaultCategoryID uint64, categoryMapper CategoryMatcher) error + func (r *BidRequest) PrepareWithFormats(formats types.FormatsAccessor) adtype.BidRequester + func (r *BidRequest) ProjectID() uint64 + func (r *BidRequest) RandomValue() int64 + func (r *BidRequest) Release() + func (r *BidRequest) ServiceDomain() string + func (r *BidRequest) Set(key string, val any) + func (r *BidRequest) SetContext(ctx context.Context) + func (r *BidRequest) SetSourceFilter(ids ...uint64) + func (r *BidRequest) Sex() uint + func (r *BidRequest) SiteInfo() *udetect.Site + func (r *BidRequest) Size() (w, h int) + func (r *BidRequest) SourceFilterCheck(id uint64) bool + func (r *BidRequest) String() (res string) + func (r *BidRequest) Tags() []string + func (r *BidRequest) TargetID() uint64 + func (r *BidRequest) TargetIDs() []uint64 + func (r *BidRequest) TargetPointers() []types.TargetPointer + func (r *BidRequest) Time() time.Time + func (r *BidRequest) TrafficSourceID() uint64 + func (r *BidRequest) Unset(keys ...string) + func (r *BidRequest) UserInfo() *adtype.User + func (r *BidRequest) Validate() error + func (r *BidRequest) WithFormats(formats types.FormatsAccessor) adtype.BidRequester + type BidRequestFlags uint8 + const BidRequestFlagAdBlock + const BidRequestFlagBot + const BidRequestFlagPrivateBrowsing + const BidRequestFlagProxy + const BidRequestFlagSecure + func (f *BidRequestFlags) Set(flag BidRequestFlags, set bool) + func (f BidRequestFlags) If(b bool) BidRequestFlags + func (f BidRequestFlags) IsSet(flag BidRequestFlags) bool + type BidTargetWrapper struct + BidReq *BidRequest + Imp *adtype.Impression + func (b *BidTargetWrapper) Age() uint + func (b *BidTargetWrapper) AppID() uint64 + func (b *BidTargetWrapper) AppInfo() *types.AppInfo + func (b *BidTargetWrapper) AuctionType() types.AuctionType + func (b *BidTargetWrapper) BrowserInfo() *types.BrowserInfo + func (b *BidTargetWrapper) CarrierInfo() *types.CarrierInfo + func (b *BidTargetWrapper) CategoryCodes() []string + func (b *BidTargetWrapper) CategoryIDs() []uint64 + func (b *BidTargetWrapper) CountryCode() string + func (b *BidTargetWrapper) CurrentGeoTime() time.Time + func (b *BidTargetWrapper) DeviceInfo() *types.DeviceInfo + func (b *BidTargetWrapper) Domain() []string + func (b *BidTargetWrapper) DomainName() string + func (b *BidTargetWrapper) ExtarnalTargetID() string + func (b *BidTargetWrapper) Formats() types.BidFormater + func (b *BidTargetWrapper) GeoID() uint64 + func (b *BidTargetWrapper) GeoInfo() *types.GeoInfo + func (b *BidTargetWrapper) IsAdBlock() bool + func (b *BidTargetWrapper) IsDebug() bool + func (b *BidTargetWrapper) IsIPv6() bool + func (b *BidTargetWrapper) IsInterstitial() bool + func (b *BidTargetWrapper) IsPrivateBrowsing() bool + func (b *BidTargetWrapper) IsProxy() bool + func (b *BidTargetWrapper) IsPush() bool + func (b *BidTargetWrapper) IsRobot() bool + func (b *BidTargetWrapper) IsSecure() bool + func (b *BidTargetWrapper) LanguageCode() string + func (b *BidTargetWrapper) LanguageID() uint64 + func (b *BidTargetWrapper) MinECPM() billing.Money + func (b *BidTargetWrapper) OSInfo() *types.OSInfo + func (b *BidTargetWrapper) Sex() uint + func (b *BidTargetWrapper) SiteInfo() *types.SiteInfo + func (b *BidTargetWrapper) Size() (w, h int) + func (b *BidTargetWrapper) Tags() []string + func (b *BidTargetWrapper) TargetID() uint64 + func (b *BidTargetWrapper) Time() time.Time + func (b *BidTargetWrapper) TrafficSourceID() uint64 + type CategoryMatcher interface + CategoryCode func(id uint64) string + MatchCategoryID func(key string, cattax int) uint64 + MatchCategoryIDFromKeyword func(allowedCats []uint64, keyword string) uint64 + type ServerCounter interface + Value func() uint64