models

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PricingModelUndefined = types.PricingModelUndefined
	PricingModelCPM       = types.PricingModelCPM
	PricingModelCPC       = types.PricingModelCPC
	PricingModelCPA       = types.PricingModelCPA
)

PricingModel set of types

View Source
const (
	StatusPending      = types.StatusPending
	StatusApproved     = types.StatusApproved
	StatusRejected     = types.StatusRejected
	StatusPendingName  = types.StatusPendingName
	StatusApprovedName = types.StatusApprovedName
	StatusRejectedName = types.StatusRejectedName
	StatusActive       = types.StatusActive
	StatusPause        = types.StatusPause
	StatusPublic       = types.StatusPublic
	StatusPrivate      = types.StatusPrivate
)

ActiveStatus set of types

View Source
const (
	PlatformUndefined      = types.PlatformUndefined
	PlatformWeb            = types.PlatformWeb
	PlatformDesktop        = types.PlatformDesktop
	PlatformMobile         = types.PlatformMobile
	PlatformSmartPhone     = types.PlatformSmartPhone
	PlatformTablet         = types.PlatformTablet
	PlatformSmartTV        = types.PlatformSmartTV
	PlatformGameStation    = types.PlatformGameStation
	PlatformSmartWatch     = types.PlatformSmartWatch
	PlatformVR             = types.PlatformVR
	PlatformSmartGlasses   = types.PlatformSmartGlasses
	PlatformSmartBillboard = types.PlatformSmartBillboard
)

PlatformType set of types

View Source
const (
	PlatformUndefinedName      = types.PlatformUndefinedName
	PlatformWebName            = types.PlatformWebName
	PlatformDesktopName        = types.PlatformDesktopName
	PlatformMobileName         = types.PlatformMobileName
	PlatformSmartPhoneName     = types.PlatformSmartPhoneName
	PlatformTabletName         = types.PlatformTabletName
	PlatformSmartTVName        = types.PlatformSmartTVName
	PlatformGameStationName    = types.PlatformGameStationName
	PlatformSmartWatchName     = types.PlatformSmartWatchName
	PlatformVRName             = types.PlatformVRName
	PlatformSmartGlassesName   = types.PlatformSmartGlassesName
	PlatformSmartBillboardName = types.PlatformSmartBillboardName
)

PlatformName set of names

View Source
const (
	UserSexUndefined = adtype.UserSexUndefined
	UserSexMale      = adtype.UserSexMale
	UserSexFemale    = adtype.UserSexFemale
)

UserSex set of types

View Source
const (
	ZoneTypeDefault   = types.ZoneTypeDefault
	ZoneTypeSmartlink = types.ZoneTypeSmartlink
)

ZoneType set of types

View Source
const (
	RTBRequestTypeUndefined       = types.RTBRequestTypeUndefined
	RTBRequestTypeJSON            = types.RTBRequestTypeJSON
	RTBRequestTypeXML             = types.RTBRequestTypeXML
	RTBRequestTypeProtoBUFF       = types.RTBRequestTypeProtoBUFF
	RTBRequestTypePOSTFormEncoded = types.RTBRequestTypePOSTFormEncoded
	RTBRequestTypePLAINTEXT       = types.RTBRequestTypePLAINTEXT
)

RTBRequestType set of types

View Source
const (
	AuctionTypeUndefined   = types.UndefinedAuctionType
	AuctionTypeFirstPrice  = types.FirstPriceAuctionType
	AuctionTypeSecondPrice = types.SecondPriceAuctionType
)

AuctionType set of types

View Source
const (
	ApplicationUndefined = types.ApplicationUndefined
	ApplicationSite      = types.ApplicationSite
	ApplicationApp       = types.ApplicationApp
	ApplicationGame      = types.ApplicationGame
)

ApplicationType set of types

View Source
const (
	UndefinedOptionType = optionmodels.UndefinedOptionType
	UserOptionType      = optionmodels.UserOptionType
	AccountOptionType   = optionmodels.AccountOptionType
	SystemOptionType    = optionmodels.SystemOptionType
)
View Source
const (
	OrderUndefined = coremodels.OrderUndefined
	OrderAsc       = coremodels.OrderAsc
	OrderDesc      = coremodels.OrderDesc
)
View Source
const (
	UndefinedAvailableStatus   = coremodels.UndefinedAvailableStatus
	AvailableAvailableStatus   = coremodels.AvailableAvailableStatus
	UnavailableAvailableStatus = coremodels.UnavailableAvailableStatus
)

AvailableStatus option constants...

View Source
const (
	UndefinedApproveStatus   = coremodels.UndefinedApproveStatus
	ApprovedApproveStatus    = coremodels.ApprovedApproveStatus
	DisapprovedApproveStatus = coremodels.DisapprovedApproveStatus
	BannedApproveStatus      = coremodels.BannedApproveStatus
)

ApproveStatus option constants...

Variables

View Source
var Anonymous = User{UserBase: userModels.UserBase{ID: 0}}

Anonymous is the example anonymous session user placeholder.

Functions

This section is empty.

Types

type Account

type Account struct {
	accountModels.AccountBase

	Name        string `gorm:"column:name;type:varchar(255);not null" json:"name"`
	Description string `gorm:"column:description;type:text" json:"description"`

	CountryCode      string `gorm:"column:country_code;type:varchar(2)" json:"country_code"`
	City             string `gorm:"column:city;type:varchar(255)" json:"city"`
	ZipCode          string `gorm:"column:zip_code;type:varchar(20)" json:"zip_code"`
	Address          string `gorm:"column:address;type:varchar(255)" json:"address"`
	Phone            string `gorm:"column:phone;type:varchar(20)" json:"phone"`
	VATNumber        string `gorm:"column:vat_number;type:varchar(50)" json:"vat_number"`
	CompanyRegNumber string `gorm:"column:company_reg_number;type:varchar(50)" json:"company_reg_number"`

	Contacts gogosql.NullableJSONArray[Contact] `gorm:"column:contacts;type:json" json:"contacts"`
}

Account is the bundled default for example/api: Base + consumer profile trait.

func (*Account) NewWithIDs added in v0.2.0

func (a *Account) NewWithIDs(id uint64, adminUserIDs ...uint64) account.Model

NewWithIDs returns a new account instance with ID and admin user IDs set.

type AccountMember

type AccountMember = account.Member[*User, *Account]

AccountMember is the bundled member type for example/api.

type AccountSocial

type AccountSocial = socialmodels.AccountSocial

API basic types

type AccountSocialSession

type AccountSocialSession = socialmodels.AccountSocialSession

API basic types

type ActiveStatus

type ActiveStatus = types.ActiveStatus

AdType set of types

type Agreement added in v0.2.0

type Agreement = agreementmodels.Agreement

type Application

type Application = applicationmodels.Application

Models set of types

type ApplicationType

type ApplicationType = types.ApplicationType

AdType set of types

type ApproveStatus

type ApproveStatus = types.ApproveStatus

AdType set of types

type AuctionType

type AuctionType = types.AuctionType

AdType set of types

type AuthClient

type AuthClient = authclientmodels.AuthClient

API basic types

type AuthSession

type AuthSession = authclientmodels.AuthSession

API basic types

type AvailableStatus

type AvailableStatus = coremodels.AvailableStatus

AvailableStatus type

type BlazeApproveStatus

type BlazeApproveStatus = coremodels.ApproveStatus

BlazeApproveStatus of the model

type Browser

type Browser = browsermodels.Browser

Models set of types

type Category

type Category = categorymodels.Category

Models set of types

type Contact added in v0.2.0

type Contact struct {
	Type      string `json:"type"`
	Value     string `json:"value"`
	IsPrimary bool   `json:"is_primary,omitempty"`
}

type DeviceMaker

type DeviceMaker = devicemodelmodels.DeviceMaker

Models set of types

type DeviceModel

type DeviceModel = devicemodelmodels.DeviceModel

Models set of types

type DeviceType

type DeviceType = devicemodelmodels.DeviceType

Models set of types

type DirectAccessToken

type DirectAccessToken = datmodels.DirectAccessToken

API basic types

type Format

type Format = adformatmodels.Format

Models set of types

type HistoryAction

type HistoryAction = historymodels.HistoryAction

API basic types

type M2MAccountMemberRole

type M2MAccountMemberRole = accountmodels.M2MAccountMemberRole

API basic types

type M2MRole

type M2MRole = rbacmodels.M2MRole

API basic types

type OS

type OS = osmodels.OS

Models set of types

type Option

type Option = optionmodels.Option

API basic types

type OptionType

type OptionType = optionmodels.OptionType

OptionType type casting

type Order

type Order = coremodels.Order

Order type casting

func OrderFromStr

func OrderFromStr(s string) Order

PrepareQuery returns the query with applied order

type PlatformType

type PlatformType = types.PlatformType

AdType set of types

type PricingModel

type PricingModel = types.PricingModel

AdType set of types

type PrivateStatus

type PrivateStatus = types.PrivateStatus

AdType set of types

type RTBRequestType

type RTBRequestType = types.RTBRequestType

AdType set of types

type RTBSource

type RTBSource = rtbsourcemodels.RTBSource

Models set of types

type RTBSourceFlags

type RTBSourceFlags = rtbsourcemodels.RTBSourceFlags

type Role

type Role = rbacmodels.Role

API basic types

type StatisticAdItem

type StatisticAdItem = statisticmodels.StatisticAdItem

type StatisticAdItemKey

type StatisticAdItemKey = statisticmodels.StatisticAdItemKey

type TrafficRouter

type TrafficRouter = trafficroutermodels.TrafficRouter

Models set of types

type TypeSex

type TypeSex = adtype.TypeSex

AdType set of types

type User

User is the example consumer user model (Base + Email + Password traits).

func (*User) NewWithID added in v0.2.0

func (u *User) NewWithID(id uint64) user.Model

type UserPasswordReset

type UserPasswordReset = usermodels.UserPasswordReset

API basic types

type Zone

type Zone = zonemodels.Zone

Models set of types

type ZoneType

type ZoneType = types.ZoneType

AdType set of types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL