Documentation ¶
Index ¶
- type WebHandler
- func (wh *WebHandler) ASN(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) AboutTLDMonitor(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) AboutZonemaster(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) Address(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) Domain(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) Index(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) NS(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) Prefix(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) Tag(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) TopListASN(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) TopListNS(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (wh *WebHandler) TopListTags(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebHandler ¶
type WebHandler struct {
// contains filtered or unexported fields
}
WebHandler contains handler info (mongo db) for the handlers
func InitWebHandler ¶
func InitWebHandler(t *template.Template, mdb, mgc, stats string) (*WebHandler, error)
InitWebHandler connects to the mongo db, and adds the two collections
func (*WebHandler) ASN ¶
func (wh *WebHandler) ASN(w http.ResponseWriter, r *http.Request, p httprouter.Params)
ASN finds all domains with the asn matching the search
func (*WebHandler) AboutTLDMonitor ¶
func (wh *WebHandler) AboutTLDMonitor(w http.ResponseWriter, r *http.Request, p httprouter.Params)
AboutTLDMonitor renders the about page about TLDMonitor
func (*WebHandler) AboutZonemaster ¶
func (wh *WebHandler) AboutZonemaster(w http.ResponseWriter, r *http.Request, p httprouter.Params)
AboutZonemaster renders the about page about Zonemaster
func (*WebHandler) Address ¶
func (wh *WebHandler) Address(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Address finds all domains with the address matching the search
func (*WebHandler) Domain ¶
func (wh *WebHandler) Domain(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Domain renders the page with the log from a domain
func (*WebHandler) Index ¶
func (wh *WebHandler) Index(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Index renders the index web page
func (*WebHandler) NS ¶
func (wh *WebHandler) NS(w http.ResponseWriter, r *http.Request, p httprouter.Params)
NS finds all domains with the nameserver matching the search
func (*WebHandler) Prefix ¶
func (wh *WebHandler) Prefix(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Prefix finds all domains with the prefix matching the search
func (*WebHandler) Tag ¶
func (wh *WebHandler) Tag(w http.ResponseWriter, r *http.Request, p httprouter.Params)
Tag finds all domain with the tag and renders the index web page (domain list)
func (*WebHandler) TopListASN ¶
func (wh *WebHandler) TopListASN(w http.ResponseWriter, r *http.Request, p httprouter.Params)
TopListASN renders the model TopListASN as HTML
func (*WebHandler) TopListNS ¶
func (wh *WebHandler) TopListNS(w http.ResponseWriter, r *http.Request, p httprouter.Params)
TopListNS renders the model TopListNS as HTML
func (*WebHandler) TopListTags ¶
func (wh *WebHandler) TopListTags(w http.ResponseWriter, r *http.Request, p httprouter.Params)
TopListTags renders the model TopListTags as HTML