Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeFreeWeekly = "free_weekly" TypeBeReferred = "be_referred" TypeReferralSpecific = "referral_specific" TypePassportScan = "passport_scan" )
View Source
const ( FlagActive = "active" FlagNotStarted = "not_started" FlagExpired = "expired" FlagDisabled = "disabled" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventType ¶
type EventType struct { Name string `fig:"name,required" db:"name"` Description string `fig:"description,required" db:"description"` ShortDescription string `fig:"short_description,required" db:"short_description"` Reward int64 `fig:"reward,required" db:"reward"` Title string `fig:"title,required" db:"title"` Frequency Frequency `fig:"frequency,required" db:"frequency"` StartsAt *time.Time `fig:"starts_at" db:"starts_at"` ExpiresAt *time.Time `fig:"expires_at" db:"expires_at"` NoAutoOpen bool `fig:"no_auto_open" db:"no_auto_open"` AutoClaim bool `fig:"auto_claim" db:"auto_claim"` Disabled bool `fig:"disabled" db:"disabled"` ActionURL *string `fig:"action_url" db:"action_url"` Logo *string `fig:"logo" db:"logo"` QRCodeValue *string `fig:"qr_code_value" db:"qr_code_value"` }
func ResourceToModel ¶
func ResourceToModel(r resources.EventStaticMeta) EventType
func (EventType) Resource ¶
func (e EventType) Resource() resources.EventStaticMeta
Click to show internal directories.
Click to hide internal directories.