Documentation
¶
Index ¶
- Constants
- Variables
- type Account
- type AccountMember
- type AccountSocial
- type AccountSocialSession
- type ActiveStatus
- type Agreement
- type Application
- type ApplicationType
- type ApproveStatus
- type AuctionType
- type AuthClient
- type AuthSession
- type AvailableStatus
- type BlazeApproveStatus
- type Browser
- type Category
- type Contact
- type DeviceMaker
- type DeviceModel
- type DeviceType
- type DirectAccessToken
- type Format
- type HistoryAction
- type M2MAccountMemberRole
- type M2MRole
- type OS
- type Option
- type OptionType
- type Order
- type PlatformType
- type PricingModel
- type PrivateStatus
- type RTBRequestType
- type RTBSource
- type RTBSourceFlags
- type Role
- type StatisticAdItem
- type StatisticAdItemKey
- type TrafficRouter
- type TypeSex
- type User
- type UserPasswordReset
- type Zone
- type ZoneType
Constants ¶
const ( PricingModelUndefined = types.PricingModelUndefined PricingModelCPM = types.PricingModelCPM PricingModelCPC = types.PricingModelCPC PricingModelCPA = types.PricingModelCPA )
PricingModel set of types
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
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
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
const ( UserSexUndefined = adtype.UserSexUndefined UserSexMale = adtype.UserSexMale UserSexFemale = adtype.UserSexFemale )
UserSex set of types
const ( ZoneTypeDefault = types.ZoneTypeDefault ZoneTypeSmartlink = types.ZoneTypeSmartlink )
ZoneType set of types
const ( RTBRequestTypeUndefined = types.RTBRequestTypeUndefined RTBRequestTypeJSON = types.RTBRequestTypeJSON RTBRequestTypeXML = types.RTBRequestTypeXML RTBRequestTypeProtoBUFF = types.RTBRequestTypeProtoBUFF RTBRequestTypePOSTFormEncoded = types.RTBRequestTypePOSTFormEncoded RTBRequestTypePLAINTEXT = types.RTBRequestTypePLAINTEXT )
RTBRequestType set of types
const ( AuctionTypeUndefined = types.UndefinedAuctionType AuctionTypeFirstPrice = types.FirstPriceAuctionType AuctionTypeSecondPrice = types.SecondPriceAuctionType )
AuctionType set of types
const ( ApplicationUndefined = types.ApplicationUndefined ApplicationSite = types.ApplicationSite ApplicationApp = types.ApplicationApp ApplicationGame = types.ApplicationGame )
ApplicationType set of types
const ( UndefinedOptionType = optionmodels.UndefinedOptionType UserOptionType = optionmodels.UserOptionType AccountOptionType = optionmodels.AccountOptionType SystemOptionType = optionmodels.SystemOptionType )
const ( OrderUndefined = coremodels.OrderUndefined OrderAsc = coremodels.OrderAsc OrderDesc = coremodels.OrderDesc )
const ( UndefinedAvailableStatus = coremodels.UndefinedAvailableStatus AvailableAvailableStatus = coremodels.AvailableAvailableStatus )
AvailableStatus option constants...
const ( UndefinedApproveStatus = coremodels.UndefinedApproveStatus ApprovedApproveStatus = coremodels.ApprovedApproveStatus DisapprovedApproveStatus = coremodels.DisapprovedApproveStatus BannedApproveStatus = coremodels.BannedApproveStatus )
ApproveStatus option constants...
Variables ¶
var Anonymous = User{UserBase: userModels.UserBase{ID: 0}}
Anonymous is the example anonymous session user placeholder.
var DeviceTypeList = devicemodelmodels.DeviceTypeList
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.
type AccountMember ¶
AccountMember is the bundled member type for example/api.
type AccountSocialSession ¶
type AccountSocialSession = socialmodels.AccountSocialSession
API basic types
type Agreement ¶ added in v0.2.0
type Agreement = agreementmodels.Agreement
type BlazeApproveStatus ¶
type BlazeApproveStatus = coremodels.ApproveStatus
BlazeApproveStatus of the model
type M2MAccountMemberRole ¶
type M2MAccountMemberRole = accountmodels.M2MAccountMemberRole
API basic types
type Order ¶
type Order = coremodels.Order
Order type casting
func OrderFromStr ¶
PrepareQuery returns the query with applied order
type RTBSourceFlags ¶
type RTBSourceFlags = rtbsourcemodels.RTBSourceFlags
type StatisticAdItem ¶
type StatisticAdItem = statisticmodels.StatisticAdItem
type StatisticAdItemKey ¶
type StatisticAdItemKey = statisticmodels.StatisticAdItemKey
type User ¶
type User struct {
userModels.UserBase
userModels.UserEmail
userModels.UserPassword
}
User is the example consumer user model (Base + Email + Password traits).