Versions in this module Expand all Collapse all v0 v0.1.0 Nov 15, 2026 Changes in this version + const DeviceTypeConnected + const DeviceTypeGlasses + const DeviceTypeMobile + const DeviceTypeOOH + const DeviceTypePC + const DeviceTypePhone + const DeviceTypeSetTopBox + const DeviceTypeTV + const DeviceTypeTablet + const DeviceTypeUnknown + const DeviceTypeWatch + const FormatFieldAddress + const FormatFieldBoolType + const FormatFieldBrandname + const FormatFieldContent + const FormatFieldDefaultType + const FormatFieldDescription + const FormatFieldFloatType + const FormatFieldIntType + const FormatFieldLikes + const FormatFieldPhone + const FormatFieldPhoneType + const FormatFieldRating + const FormatFieldStartDisplay + const FormatFieldStringType + const FormatFieldTitle + const FormatFieldURL + const FormatTypeBanner + const FormatTypeDirect + const FormatTypeNative + const FormatTypeProxy + const FormatTypeVideo + const PricingModelCPA + const PricingModelCPC + const PricingModelCPM + const PricingModelUndefined + const RTBPricePerMille + const RTBPricePerOne + var DeviceTypeList = []*DeviceType + type Application struct + AccountID uint64 + Active types.ActiveStatus + AllowedSources gosql.NullableOrderedNumberArray[int64] + Categories gosql.NullableNumberArray[uint] + CreatedAt time.Time + CreatorID uint64 + DeletedAt gorm.DeletedAt + Description string + DisallowedSources gosql.NullableOrderedNumberArray[int64] + ID uint64 + Platform types.PlatformType + Premium bool + Private types.PrivateStatus + RevenueShare float64 + Status types.ApproveStatus + Title string + Type types.ApplicationType + URI string + UpdatedAt time.Time + func (app *Application) RBACResourceName() string + func (app *Application) TableName() string + type Browser struct + Active types.ActiveStatus + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + ID uint64 + MatchNameExp string + MatchNames gosql.NullableStringArray + MatchUserAgentExp string + MatchVersionMaxExp string + MatchVersionMinExp string + Name string + Parent *Browser + ParentID sql.Null[uint64] + UpdatedAt time.Time + Version types.Version + Versions []*Browser + YearEndSupport int + YearRelease int + func (m *Browser) RBACResourceName() string + func (m *Browser) TableName() string + type Category struct + Active types.ActiveStatus + Childrens []*Category + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + IABCode string + ID uint64 + Name string + Parent *Category + ParentID sql.Null[uint64] + Position uint64 + UpdatedAt time.Time + func (c *Category) RBACResourceName() string + func (c *Category) TableName() string + type DeviceMaker struct + Active types.ActiveStatus + Codename string + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + ID uint64 + MatchExp string + Models []*DeviceModel + Name string + UpdatedAt time.Time + func (m *DeviceMaker) RBACResourceName() string + func (m *DeviceMaker) TableName() string + type DeviceModel struct + Active types.ActiveStatus + Codename string + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + ID uint64 + Maker *DeviceMaker + MakerCodename string + MatchExp string + Name string + Parent *DeviceModel + ParentID uint64 + Type *DeviceType + TypeCodename string + UpdatedAt time.Time + Versions []*DeviceModel + YearRelease int + func (m *DeviceModel) RBACResourceName() string + func (m *DeviceModel) TableName() string + type DeviceType struct + Active types.ActiveStatus + Codename string + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + ID uint64 + Name string + UpdatedAt time.Time + func (m *DeviceType) RBACResourceName() string + func (m *DeviceType) TableName() string + type Format struct + Active types.ActiveStatus + Codename string + Config gosql.NullableJSON[types.FormatConfig] + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + Height int + ID uint64 + MinHeight int + MinWidth int + Title string + Type string + UpdatedAt time.Time + Width int + func (f *Format) IsFixed() bool + func (f *Format) IsStretch() bool + func (f *Format) RBACResourceName() string + func (f *Format) TableName() string + func (f Format) IsBanner() bool + func (f Format) IsDirect() bool + func (f Format) IsNative() bool + func (f Format) IsProxy() bool + func (f Format) IsVideo() bool + type FormatFieldType = types.FormatFieldType + type OS struct + Active types.ActiveStatus + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + ID uint64 + MatchNameExp string + MatchNames gosql.NullableStringArray + MatchUserAgentExp string + MatchVersionMaxExp string + MatchVersionMinExp string + Name string + Parent *OS + ParentID sql.Null[uint64] + UpdatedAt time.Time + Version types.Version + Versions []*OS + YearEndSupport int + YearRelease int + func (m *OS) RBACResourceName() string + func (m *OS) TableName() string + type PricingModel = types.PricingModel + func PricingModelByName(model string) PricingModel + type RTBSource struct + AccountID uint64 + Accuracy float64 + Active types.ActiveStatus + AdBlock int + Applications gosql.NullableOrderedNumberArray[uint64] + AuctionType types.AuctionType + Browsers gosql.NullableOrderedNumberArray[uint64] + Carriers gosql.NullableOrderedNumberArray[uint64] + Categories gosql.NullableOrderedNumberArray[uint64] + Config gosql.NullableJSON[RTBSourceConfig] + Countries gosql.NullableStringArray + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + DeviceTypes gosql.NullableOrderedNumberArray[uint64] + Devices gosql.NullableOrderedNumberArray[uint64] + Domains gosql.NullableStringArray + ExternalZones gosql.NullableOrderedNumberArray[uint64] + Flags gosql.NullableJSON[RTBSourceFlags] + Formats gosql.NullableStringArray + Headers gosql.NullableJSON[map[string]string] + ID uint64 + IP int + InterstitialFormats gosql.NullableStringArray + Languages gosql.NullableStringArray + MaxBid float64 + Method string + MinBid float64 + MinimalWeight float64 + OS gosql.NullableOrderedNumberArray[uint64] + PriceCorrectionReduce float64 + PrivateBrowsing int + Protocol string + RPS int + RequestType types.RTBRequestType + Secure int + Status types.ApproveStatus + Timeout int + Title string + URL string + UpdatedAt time.Time + Zones gosql.NullableOrderedNumberArray[uint64] + func (c *RTBSource) PriceCorrectionReduceFactor() float64 + func (c *RTBSource) ProtocolCode() string + func (c *RTBSource) RBACResourceName() string + func (c *RTBSource) TableName() string + type RTBSourceConfig struct + Rules string + type RTBSourceFlags struct + ErrorsIgnore int8 + TestMode int8 + Trace int8 + type TrafficRouter struct + AccountID uint64 + Active types.ActiveStatus + AdBlock int + Applications gosql.NullableOrderedNumberArray[uint64] + Browsers gosql.NullableOrderedNumberArray[uint64] + Carriers gosql.NullableOrderedNumberArray[uint64] + Categories gosql.NullableOrderedNumberArray[uint64] + Countries gosql.NullableStringArray + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + DeviceTypes gosql.NullableOrderedNumberArray[uint64] + Devices gosql.NullableOrderedNumberArray[uint64] + Domains gosql.NullableStringArray + Formats gosql.NullableStringArray + ID uint64 + IP int + Languages gosql.NullableStringArray + OS gosql.NullableOrderedNumberArray[uint64] + Percent float64 + PrivateBrowsing int + RTBSourceIDs gosql.NumberArray[uint64] + Secure int + Status types.ApproveStatus + Title string + UpdatedAt time.Time + Zones gosql.NullableOrderedNumberArray[uint64] + func (tr *TrafficRouter) RBACResourceName() string + func (tr *TrafficRouter) TableName() string + type Zone struct + AccountID uint64 + Active types.ActiveStatus + AllowedFormats gosql.NullableStringArray + AllowedSources gosql.NullableOrderedNumberArray[uint64] + AllowedTypes gosql.NullableOrderedNumberArray[uint64] + Campaigns gosql.NullableOrderedNumberArray[uint64] + Codename string + Context gosql.NullableJSON[map[string]any] + CreatedAt time.Time + DefaultCode gosql.NullableJSON[map[string]string] + DeletedAt gorm.DeletedAt + Description string + DisallowedSources gosql.NullableOrderedNumberArray[uint64] + FixedPurchasePrice float64 + ID uint64 + MinECPM float64 + MinECPMByGeo gosql.NullableJSON[map[string]float64] + Status types.ApproveStatus + Title string + Type types.ZoneType + UpdatedAt time.Time + func (z *Zone) BeforeCreate(tx *gorm.DB) error + func (z *Zone) GetAccountID() uint64 + func (z *Zone) RBACResourceName() string + func (z *Zone) RevenueShare() float64 + func (z *Zone) TableName() string