Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound when form not found ErrNotFound = errors.New("form not found") // ErrSpam returned when submission is spam ErrSpam = errors.New("spam submission") )
Functions ¶
This section is empty.
Types ¶
type EmailSender ¶
EmailSender interface
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is an HTTP forms handler
func NewHandler ¶
func NewHandler(forms map[string]*config.Form, vs map[string]common.Validator, pm EmailSender, sender Sender, rdm *redmine.Redmine) *Handler
NewHandler creates new HTTP forms handler
Click to show internal directories.
Click to hide internal directories.