Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrafficRouter ¶
type TrafficRouter struct {
ID uint64 `json:"id"`
AccountID uint64 `json:"account_id"`
Title string `json:"title"`
Percent float64 `json:"percent"`
Description string `json:"description"`
Status types.ApproveStatus `gorm:"type:ApproveStatus" json:"status,omitempty"`
Active types.ActiveStatus `json:"active"`
// Target RTBs and sources of the Advertisement
RTBSourceIDs gosql.NumberArray[uint64] `gorm:"type:BIGINT[]" json:"rtb_source_ids"`
// Targeting filters
Formats gosql.NullableStringArray `gorm:"type:TEXT[]" json:"formats,omitempty"`
DeviceTypes gosql.NullableOrderedNumberArray[uint64] `gorm:"type:BIGINT[]" json:"device_types,omitempty"`
Devices gosql.NullableOrderedNumberArray[uint64] `gorm:"type:BIGINT[]" json:"devices,omitempty"`
OS gosql.NullableOrderedNumberArray[uint64] `gorm:"type:BIGINT[]" json:"os,omitempty"`
Browsers gosql.NullableOrderedNumberArray[uint64] `gorm:"type:BIGINT[]" json:"browsers,omitempty"`
Carriers gosql.NullableOrderedNumberArray[uint64] `gorm:"type:BIGINT[]" json:"carriers,omitempty"`
Categories gosql.NullableOrderedNumberArray[uint64] `gorm:"type:BIGINT[]" json:"categories,omitempty"`
Countries gosql.NullableStringArray `gorm:"type:TEXT[]" json:"countries,omitempty"`
Languages gosql.NullableStringArray `gorm:"type:TEXT[]" json:"languages,omitempty"`
Domains gosql.NullableStringArray `gorm:"type:TEXT[]" json:"domains,omitempty"`
Applications gosql.NullableOrderedNumberArray[uint64] `gorm:"column:apps;type:BIGINT[]" json:"apps,omitempty"`
Zones gosql.NullableOrderedNumberArray[uint64] `gorm:"type:BIGINT[]" json:"zones,omitempty"`
Secure int `json:"secure,omitempty" gorm:"column:secure"` // 0 - any, 1 - only, 2 - exclude
AdBlock int `json:"adblock,omitempty" gorm:"column:adblock"` // 0 - any, 1 - only, 2 - exclude
PrivateBrowsing int `json:"private_browsing,omitempty" gorm:"column:private_browsing"` // 0 - any, 1 - only, 2 - exclude
IP int `json:"ip,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"deleted_at"`
}
TrafficRouter model represents the traffic router for distribution between the RTB sources from the Applications and Zones
func (*TrafficRouter) RBACResourceName ¶
func (tr *TrafficRouter) RBACResourceName() string
RBACResourceName returns the name of the resource for the RBAC
Click to show internal directories.
Click to hide internal directories.