crash.software
Projects
Pull Requests
Issues
Builds
gophish
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
gophish
Files
🤬
Sign In
faadf0c8
ROOT
/
models
/
campaign.go
Search
History
613 lines
|
ISO-8859-1
|
18 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Campaign
Id
:
int64
UserId
:
int64
Name
:
string
CreatedDate
:
time.Time
LaunchDate
:
time.Time
SendByDate
:
time.Time
CompletedDate
:
time.Time
TemplateId
:
int64
Template
:
Template
PageId
:
int64
Page
:
Page
Status
:
string
Results
:
[]Result
Groups
:
[]Group
Events
:
[]Event
SMTPId
:
int64
SMTP
:
SMTP
URL
:
string
CampaignResults
Id
:
int64
Name
:
string
Status
:
string
Results
:
[]Result
Events
:
[]Event
CampaignSummaries
Total
:
int64
Campaigns
:
[]CampaignSummary
CampaignSummary
Id
:
int64
CreatedDate
:
time.Time
LaunchDate
:
time.Time
SendByDate
:
time.Time
CompletedDate
:
time.Time
Status
:
string
Name
:
string
Stats
:
CampaignStats
CampaignStats
Total
:
int64
EmailsSent
:
int64
OpenedEmail
:
int64
ClickedLink
:
int64
SubmittedData
:
int64
EmailReported
:
int64
Error
:
int64
Event
Id
:
int64
CampaignId
:
int64
Email
:
string
Time
:
time.Time
Message
:
string
Details
:
string
EventDetails
Payload
:
url.Values
Browser
:
map[string]string
EventError
Error
:
string
ErrCampaignNameNotSpecified
ErrGroupNotSpecified
ErrTemplateNotSpecified
ErrPageNotSpecified
ErrSMTPNotSpecified
ErrTemplateNotFound
ErrGroupNotFound
ErrPageNotFound
ErrSMTPNotFound
ErrInvalidSendByDate
RecipientParameter
getCampaignStats
(cid int64)
:
(CampaignStats, error)
GetCampaigns
(uid int64)
:
([]Campaign, error)
GetCampaignSummaries
(uid int64)
:
(CampaignSummaries, error)
GetCampaignSummary
(id int64, uid int64)
:
(CampaignSummary, error)
GetCampaign
(id int64, uid int64)
:
(Campaign, error)
GetCampaignResults
(id int64, uid int64)
:
(CampaignResults, error)
GetQueuedCampaigns
(t time.Time)
:
([]Campaign, error)
PostCampaign
(c *Campaign, uid int64)
:
error
DeleteCampaign
(id int64)
:
error
CompleteCampaign
(id int64, uid int64)
:
error
*Campaign
Validate
()
:
error
UpdateStatus
(s string)
:
error
AddEvent
(e *Event)
:
error
getDetails
()
:
error
getBaseURL
()
:
string
getFromAddress
()
:
string
generateSendDate
(idx int, totalRecipients int)
:
time.Time
All occurrences
Please wait...
Page is in error, reload to recover