Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeFreeWeekly = "free_weekly" TypeBeReferred = "be_referred" TypeReferralSpecific = "referral_specific" TypePassportScan = "passport_scan" TypeInternalPassportScan = "internal_passport_scan" TypeExternalPassportScan = "external_passport_scan" TypePollParticipation = "poll_participation" TypeEarlyTest = "early_test" TypeDailyQuestion = "daily_question" )
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"` Reward int64 `fig:"reward,required" db:"reward"` Title string `fig:"title,required" db:"title"` Description string `fig:"description,required" db:"description"` ShortDescription string `fig:"short_description,required" db:"short_description"` Localized LocalizationMap `fig:"localized" db:"localized"` 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 `db:"qr_code_value"` PollEventID *string `db:"poll_event_id"` PollContract *string `db:"poll_contract"` }
func ResourceToModel ¶
func ResourceToModel(r resources.EventStaticMeta) EventType
func (EventType) GetLocalized ¶ added in v1.0.0
type LocalizationMap ¶ added in v1.0.0
LocalizationMap maps 2-letter locales to Localized data and implements interfaces to work with DB
func (*LocalizationMap) Scan ¶ added in v1.0.0
func (l *LocalizationMap) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.