frontend

package
v0.0.0-...-510dfb7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTitle       = "Advanced subdomain discovery service."
	DefaultDescription = "" /* 131-byte string literal not displayed */
)

Variables

View Source
var DefaultGitHubIssue = "?title=Internal%%20Server%%20Error%%20on%%20%s&body=Internal%%20Server%%20Error%%20on%%20%%60%s%%60%%20%%2E"

Functions

func Get400

func Get400(c *gin.Context)

Get400 set context. If failed to render the 404.html, returns code 500 with a string: "Internal Server Error".

If d is set to a domain, the 404.html will show "No subdomains found for...".

func Get400HTML

func Get400HTML(c *gin.Context, err error)

func Get400JSON

func Get400JSON(c *gin.Context, err error)

func Get400Text

func Get400Text(c *gin.Context, err error)

func Get404

func Get404(c *gin.Context)

Get404 set context. If failed to render the 404.html, returns code 500 with a string: "Internal Server Error".

If d is set to a domain, the 404.html will show "No subdomains found for...".

func Get404HTML

func Get404HTML(c *gin.Context, d string)

func Get404JSON

func Get404JSON(c *gin.Context)

func Get404Text

func Get404Text(c *gin.Context)

func Get500

func Get500(c *gin.Context)

func Get500HTML

func Get500HTML(c *gin.Context)

Get500 set context. If failed to render the 500.html, returns a string.

func Get500JSON

func Get500JSON(c *gin.Context)

func Get500Text

func Get500Text(c *gin.Context)

func Get502

func Get502(c *gin.Context)

func Get502HTML

func Get502HTML(c *gin.Context)

Get502HTML If failed to render the 500.html, returns a string.

func Get502JSON

func Get502JSON(c *gin.Context)

func Get502Text

func Get502Text(c *gin.Context)

func Get504

func Get504(c *gin.Context)

func Get504HTML

func Get504HTML(c *gin.Context)

Get504HTML If failed to render the 500.html, returns a string.

func Get504JSON

func Get504JSON(c *gin.Context)

func Get504Text

func Get504Text(c *gin.Context)

func GetAPI

func GetAPI(c *gin.Context)

func GetAbout

func GetAbout(c *gin.Context)

Get400 set context. If failed to render the 404.html, returns code 500 with a string: "Internal Server Error".

If d is set to a domain, the 404.html will show "No subdomains found for...".

func GetContact

func GetContact(c *gin.Context)

Get400 set context. If failed to render the 404.html, returns code 500 with a string: "Internal Server Error".

If d is set to a domain, the 404.html will show "No subdomains found for...".

func GetDNSServer

func GetDNSServer(c *gin.Context)

Get400 set context. If failed to render the 404.html, returns code 500 with a string: "Internal Server Error".

If d is set to a domain, the 404.html will show "No subdomains found for...".

func GetPrivacyPolicy

func GetPrivacyPolicy(c *gin.Context)

Get400 set context. If failed to render the 404.html, returns code 500 with a string: "Internal Server Error".

If d is set to a domain, the 404.html will show "No subdomains found for...".

func GetReport

func GetReport(c *gin.Context, dat ReportData)

Get404 set context. If failed to render the 404.html, returns code 500 with a string: "Internal Server Error".

If d is set to a domain, the 404.html will show "No subdomains found for...".

func GetRobotsTxt

func GetRobotsTxt(c *gin.Context)

func GetSearch

func GetSearch(c *gin.Context)

func GetSearchRedirect

func GetSearchRedirect(c *gin.Context)

Redirect old report path

func GetSitemapXML

func GetSitemapXML(c *gin.Context)

func GetStatic

func GetStatic(c *gin.Context)

func GetStatistics

func GetStatistics(c *gin.Context)

func RedirectStatToStatistics

func RedirectStatToStatistics(c *gin.Context)

Types

type DomainsData

type DomainsData struct {
	Domain     string
	Updated    string
	RecordsNum int
	Records    []RecordsData
}

type RecordsData

type RecordsData struct {
	Type  string
	Value string
	Time  string
}

type ReportData

type ReportData struct {
	Meta     metaData
	Question string
	SubList  *SubData
	Stat     ReportStat
	Domains  []DomainsData
}

type ReportStat

type ReportStat struct {
	Total              int
	WithRecords        int
	WithRecordsPercent string
	TotalRecords       int
}

type SitemapURL

type SitemapURL struct {
	Loc        string `xml:"loc"`
	ChangeFreq string `xml:"changefreq"`
	Priority   string `xml:"priority"`
}

type SubData

type SubData struct {
	Sub    string
	Domain string
	Childs []*SubData
}

func (*SubData) Add

func (s *SubData) Add(sub string, domain string) *SubData

type URLSet

type URLSet struct {
	XMLName xml.Name     `xml:"urlset"`
	XMLNS   string       `xml:"xmlns,attr"`
	URL     []SitemapURL `xml:"url"`
}

Jump to

Keyboard shortcuts

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