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
/
controllers
/
route.go
Search
History
355 lines
|
ISO-8859-1
|
11 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
AdminServerOption
AdminServer
server
:
*http.Server
worker
:
worker.Worker
config
:
config.AdminServer
WithWorker
(w worker.Worker)
:
AdminServerOption
NewAdminServer
(config config.AdminServer, options ...AdminServerOption)
:
*AdminServer
Use
(handler http.HandlerFunc, mid ...func(http.Handler) http.HandlerFunc)
:
http.HandlerFunc
templateParams
Title
:
string
Flashes
:
[]interface{}
User
:
models.User
Token
:
string
Version
:
string
ModifySystem
:
bool
newTemplateParams
(r *http.Request)
:
templateParams
getTemplate
(w http.ResponseWriter, tmpl string)
:
*template.Template
Flash
(w http.ResponseWriter, r *http.Request, t string, m string)
*AdminServer
Start
()
:
error
Shutdown
()
:
error
registerRoutes
()
Register
(w http.ResponseWriter, r *http.Request)
Base
(w http.ResponseWriter, r *http.Request)
Campaigns
(w http.ResponseWriter, r *http.Request)
CampaignID
(w http.ResponseWriter, r *http.Request)
Templates
(w http.ResponseWriter, r *http.Request)
Users
(w http.ResponseWriter, r *http.Request)
LandingPages
(w http.ResponseWriter, r *http.Request)
SendingProfiles
(w http.ResponseWriter, r *http.Request)
Settings
(w http.ResponseWriter, r *http.Request)
Login
(w http.ResponseWriter, r *http.Request)
Logout
(w http.ResponseWriter, r *http.Request)
All occurrences
Please wait...
Page is in error, reload to recover