Versions in this module Expand all Collapse all v0 v0.1.1 Nov 15, 2026 v0.1.0 Nov 15, 2026 Changes in this version + type Aplicable int8 + const Any + const Exclude + const Include + func (a *Aplicable) UnmarshalText(text []byte) error + func (a Aplicable) MarshalJSON() ([]byte, error) + func (a Aplicable) String() string + func (a Aplicable) UnmarshalJSON(b []byte) error + type Condition struct + Formats []string + Interstitial Aplicable + Objects []string + Push Aplicable + func (c *Condition) Matches(format *types.Format, isIntr, isPush bool) bool + type Detection struct + FormatCodes []string + Interstitial bool + NoRequestObject bool + Push bool + Rule *RuleItem + type MapResponse struct + Assets []MapResponseAsset + func (mr *MapResponse) HasAssets() bool + func (mr *MapResponse) Mapping(data map[string]any, fnk func(string, any) error) error + func (mr *MapResponse) Write(dst map[string]any, get func(string) any) error + type MapResponseAsset struct + Field string + ID int + Name string + type Meta struct + Description string + Docs []info.Documentation + ModifiedAt time.Time + Title string + Version string + type RTBRuler interface + AdjustImpression func(target TargetImpression, imp *adtype.Impression, format *types.Format) error + ApplyRules func(format *types.Format, isIntr, isPush bool, fn func(rule *RuleItem) error) error + Detect func(sig RequestSignal) *Detection + HasMappingRules func() bool + IsFormatSupport func(format *types.Format) bool + IsInterstitialSupport func(format *types.Format) bool + IsPushSupport func(format *types.Format) bool + NoRequestObject func(format *types.Format, isIntr, isPush bool) bool + type RTBRules struct + DSPRules []*RuleItem + Formats []string + InterstitialFormats []string + Meta Meta + PushFormats []string + SSPRules []*RuleItem + func (r *RTBRules) AdjustImpression(target TargetImpression, imp *adtype.Impression, format *types.Format) error + func (r *RTBRules) ApplyRules(format *types.Format, isIntr, isPush bool, fn func(rule *RuleItem) error) error + func (r *RTBRules) Detect(sig RequestSignal) *Detection + func (r *RTBRules) HasMappingRules() bool + func (r *RTBRules) IsFormatSupport(format *types.Format) bool + func (r *RTBRules) IsInterstitialSupport(format *types.Format) bool + func (r *RTBRules) IsPushSupport(format *types.Format) bool + func (r *RTBRules) NoRequestObject(format *types.Format, isIntr, isPush bool) bool + type RequestSignal struct + Ext map[string]any + HasBanner bool + HasNative bool + HasVideo bool + Instl bool + type ResponseSpec struct + Render string + type RuleConfig struct + Ext map[string]any + NoRequestObject bool + type RuleItem struct + Condition Condition + Config RuleConfig + Formats []string + MapResponse *MapResponse + Reset []string + Response *ResponseSpec + type TargetImpression interface + SetExt func(ext map[string]any)