handlers

package
v0.0.0-...-9e0c801 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2017 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

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

Domain renders the page with the log from a domain

func (*WebHandler) Index

Index renders the index web page

func (*WebHandler) NS

NS finds all domains with the nameserver matching the search

func (*WebHandler) Prefix

Prefix finds all domains with the prefix matching the search

func (*WebHandler) Tag

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL