Documentation
¶
Index ¶
- func GinLog(param gin.LogFormatterParams) string
- func HistoryGet(c *gin.Context)
- func LookupGet(c *gin.Context)
- func Redirect(c *gin.Context)
- func Run() error
- func StartsGet(c *gin.Context)
- func StatGet(c *gin.Context)
- func TLDGet(c *gin.Context)
- func ToolsDomainGet(c *gin.Context)
- func ToolsIsValidGet(c *gin.Context)
- func ToolsSubdomainGet(c *gin.Context)
- func ToolsTLDGet(c *gin.Context)
- func UpdateStat()
- type Stat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinLog ¶ added in v0.3.0
func GinLog(param gin.LogFormatterParams) string
func HistoryGet ¶ added in v0.15.0
func Run ¶
func Run() error
ServerRun start the http server and block. The server can stopped with a SIGINT.
func ToolsDomainGet ¶ added in v0.8.0
GET /tools/domain/{fqdn} Returns the domain part of a FQDN.
func ToolsIsValidGet ¶ added in v0.8.0
GET /tools/isvalid/{fqdn} Returns wether fqdn is valid.
func ToolsSubdomainGet ¶ added in v0.8.0
GET /tools/subdomain/{fqdn} Returns the subdomain part of a FQDN.
func ToolsTLDGet ¶ added in v0.8.0
GET /tools/tld/{fqdn} Returns the TLD part of a FQDN.
func UpdateStat ¶
func UpdateStat()
UpdateStat is created to run as a goroutine. Started in the main. Updates the Current variable every 60 minutes and updates the unique collection via db.UpdateUniques() every config.StatAPIWait minutes.
Types ¶
Click to show internal directories.
Click to hide internal directories.