Documentation ¶
Index ¶
- type APIKey
- type CachedSite
- type CheckStatEmail
- type CreateSiteEmail
- type EmailVerificationCode
- type FeedbackEmail
- type Goal
- type IntroEmail
- type Invitation
- type Model
- type MonthlyReport
- type SentMonthlyReport
- type SentRenewalNotification
- type SentWeeklyReport
- type SharedLink
- type Site
- type SiteMembership
- type SpikeNotification
- type Subscription
- type User
- type WeeklyReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedSite ¶
type CheckStatEmail ¶
type CreateSiteEmail ¶
type EmailVerificationCode ¶
type FeedbackEmail ¶
type IntroEmail ¶
type Invitation ¶
type MonthlyReport ¶
type SentRenewalNotification ¶
type SharedLink ¶
type SharedLink struct {}
type Site ¶
type Site struct { Model Domain string `gorm:"uniqueIndex" json:"domain"` Timezone string `gorm:"default:UTC" json:"timezone"` Public bool `gorm:"not null;default:false" json:"public"` StatsStartDate time.Time `json:"statsStartDate"` IngestRateLimit sql.NullFloat64 Users []*User `gorm:"many2many:site_memberships;" json:"-"` SentWeeklyReports []*SentWeeklyReport `json:"sentWeeklyReports,omitempty"` SentMonthlyReports []*SentMonthlyReport `json:"sentMonthlyReports,omitempty"` WeeklyReport *WeeklyReport `json:"weeklyReport,omitempty"` MonthlyReports *MonthlyReport `json:"monthlyReports,omitempty"` SpikeNotification *SpikeNotification `gorm:"constraint:OnDelete:CASCADE;" json:"spikeNotification,omitempty"` Invitations []*Invitation `gorm:"constraint:OnDelete:CASCADE;" json:"invitations,omitempty"` SiteMemberships []*SiteMembership `json:"siteMemberships,omitempty"` }
type SiteMembership ¶
type SpikeNotification ¶
type Subscription ¶
type Subscription struct { Model UserID int PlanID uint64 `gorm:"not null"` UpdateURL string `gorm:"not null"` CancelURL string `gorm:"not null"` Status string `gorm:"not null;check:status in ('active', 'past_due', 'deleted', 'paused')"` NextBillAmount string `gorm:"not null"` NextBillDate time.Time `gorm:"not null"` LastBillDate time.Time }
type User ¶
type User struct { Model Name string Email string `gorm:"uniqueIndex"` PasswordHash string Sites []*Site `gorm:"many2many:site_memberships;"` EmailVerificationCodes []*EmailVerificationCode `gorm:"constraint:OnDelete:CASCADE;"` IntroEmails []*IntroEmail `gorm:"constraint:OnDelete:CASCADE;"` FeedbackEmails []*FeedbackEmail `gorm:"constraint:OnDelete:CASCADE;"` CreateSiteEmails []*CreateSiteEmail `gorm:"constraint:OnDelete:CASCADE;"` CheckStatEmail []*CheckStatEmail `gorm:"constraint:OnDelete:CASCADE;"` SentRenewalNotification []*SentRenewalNotification APIKeys []*APIKey Subscription *Subscription LastSeen time.Time EmailVerified bool `gorm:"not null;default:false"` Invitations []*Invitation }
type WeeklyReport ¶
Click to show internal directories.
Click to hide internal directories.