Versions in this module Expand all Collapse all v0 v0.8.0 Aug 4, 2019 Changes in this version + var ErrEmptyPassword = errors.New("No password provided") + var ErrEmptyRole = errors.New("No role specified") + var ErrEmptyUsername = errors.New("No username provided") + var ErrInsufficientPermission = errors.New("Permission denied") + var ErrUsernameTaken = errors.New("Username already taken") + func JSONResponse(w http.ResponseWriter, d interface{}, c int) + type Server struct + func NewServer(options ...ServerOption) *Server + func (as *Server) Campaign(w http.ResponseWriter, r *http.Request) + func (as *Server) CampaignComplete(w http.ResponseWriter, r *http.Request) + func (as *Server) CampaignResults(w http.ResponseWriter, r *http.Request) + func (as *Server) CampaignSummary(w http.ResponseWriter, r *http.Request) + func (as *Server) Campaigns(w http.ResponseWriter, r *http.Request) + func (as *Server) CampaignsSummary(w http.ResponseWriter, r *http.Request) + func (as *Server) Group(w http.ResponseWriter, r *http.Request) + func (as *Server) GroupSummary(w http.ResponseWriter, r *http.Request) + func (as *Server) Groups(w http.ResponseWriter, r *http.Request) + func (as *Server) GroupsSummary(w http.ResponseWriter, r *http.Request) + func (as *Server) ImportEmail(w http.ResponseWriter, r *http.Request) + func (as *Server) ImportGroup(w http.ResponseWriter, r *http.Request) + func (as *Server) ImportSite(w http.ResponseWriter, r *http.Request) + func (as *Server) Page(w http.ResponseWriter, r *http.Request) + func (as *Server) Pages(w http.ResponseWriter, r *http.Request) + func (as *Server) Reset(w http.ResponseWriter, r *http.Request) + func (as *Server) SendTestEmail(w http.ResponseWriter, r *http.Request) + func (as *Server) SendingProfile(w http.ResponseWriter, r *http.Request) + func (as *Server) SendingProfiles(w http.ResponseWriter, r *http.Request) + func (as *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (as *Server) Template(w http.ResponseWriter, r *http.Request) + func (as *Server) Templates(w http.ResponseWriter, r *http.Request) + func (as *Server) User(w http.ResponseWriter, r *http.Request) + func (as *Server) Users(w http.ResponseWriter, r *http.Request) + type ServerOption func(*Server) + func WithWorker(w worker.Worker) ServerOption