Documentation
¶
Overview ¶
Package handler implements handlers for HTTP routes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { DB *db.DBConnection Mailer *m.Mailer }
Handler object contains handler configuration
func (*Handler) Blacklisted ¶
func (h *Handler) Blacklisted(w http.ResponseWriter, r *http.Request)
Blacklisted handler for blacklisting a client It will skip localhost IPv4 and IPv6 addresses, and perform the following operations - Add db record about blacklisted IP - Send an email about blacklisted IP
Click to show internal directories.
Click to hide internal directories.