mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-13 18:50:47 +02:00
1 parent
10f201c5ca
commit
c4ed8cfeeb
12 files changed
+543
-183
No files matched your search
@@ -25,6 +25,15 @@ type Campaign struct {
|
||||
SortOrder string `gorm:";"` // 'asc,desc,random'
|
||||
SendStartAt *time.Time `gorm:"index;"`
|
||||
SendEndAt *time.Time `gorm:"index;"`
|
||||
// ScheduleAt is set when the campaign uses late-scheduling.
|
||||
// the task runner will call schedule() when now >= ScheduleAt.
|
||||
// null means the campaign was scheduled immediately at creation.
|
||||
ScheduleAt *time.Time `gorm:"index;"`
|
||||
// JitterMin and JitterMax are persisted only when ScheduleAt is set (late-scheduling).
|
||||
// They are cleared after the campaign is scheduled by the task runner.
|
||||
// For immediately-scheduled campaigns these columns remain null.
|
||||
JitterMin *int `gorm:""`
|
||||
JitterMax *int `gorm:""`
|
||||
|
||||
// ConstraintWeekDays is a binary format.
|
||||
// 0b00000001 = 1 = sunday
|
||||
|
||||
Reference in new issue
Block a user