Versions in this module Expand all Collapse all v0 v0.8.0 Aug 4, 2019 Changes in this version + const TransparencySuffix + var ErrCampaignComplete = errors.New("Event received on completed campaign") + var ErrInvalidRequest = errors.New("Invalid request") + func Flash(w http.ResponseWriter, r *http.Request, t string, m string) + type AdminServer struct + func NewAdminServer(config config.AdminServer, options ...AdminServerOption) *AdminServer + func (as *AdminServer) Base(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) CampaignID(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) Campaigns(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) Groups(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) LandingPages(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) Login(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) Logout(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) SendingProfiles(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) Settings(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) Shutdown() error + func (as *AdminServer) Start() error + func (as *AdminServer) Templates(w http.ResponseWriter, r *http.Request) + func (as *AdminServer) UserManagement(w http.ResponseWriter, r *http.Request) + type AdminServerOption func(*AdminServer) + func WithWorker(w worker.Worker) AdminServerOption + type PhishingServer struct + func NewPhishingServer(config config.PhishServer, options ...PhishingServerOption) *PhishingServer + func (ps *PhishingServer) PhishHandler(w http.ResponseWriter, r *http.Request) + func (ps *PhishingServer) ReportHandler(w http.ResponseWriter, r *http.Request) + func (ps *PhishingServer) RobotsHandler(w http.ResponseWriter, r *http.Request) + func (ps *PhishingServer) Shutdown() error + func (ps *PhishingServer) Start() error + func (ps *PhishingServer) TrackHandler(w http.ResponseWriter, r *http.Request) + func (ps *PhishingServer) TransparencyHandler(w http.ResponseWriter, r *http.Request) + type PhishingServerOption func(*PhishingServer) + func WithContactAddress(addr string) PhishingServerOption + type TransparencyResponse struct + ContactAddress string + SendDate time.Time + Server string