models

package
v0.0.0-...-6b40af4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FailedURL

type FailedURL struct {
	URL    string `json:"url"`
	Reason string `json:"reason"`
}

type SitemapXML

type SitemapXML struct {
	XMLName xml.Name `xml:"urlset"`
	Version string   `xml:"xmlns,attr"`
	XSI     string   `xml:"xmlns:xsi,attr"`
	Text    string   `xml:",chardata"`
	URL     []UrlXML `xml:"url"`
}

type URLPriority

type URLPriority string
const (
	URLPriorityAlways  URLPriority = "always"
	URLPriorityHourly  URLPriority = "hourly"
	URLPriorityDaily   URLPriority = "daily"
	URLPriorityWeekly  URLPriority = "weekly"
	URLPriorityMonthly URLPriority = "monthly"
	URLPriorityYearly  URLPriority = "yearly"
	URLPriorityNever   URLPriority = "never"
)

type UrlDetails

type UrlDetails struct {
	Base  string
	URL   string
	Title string
	Level int
}

type UrlResult

type UrlResult struct {
	URL   string
	Title string
}

type UrlXML

type UrlXML struct {
	Loc        *string      `xml:"loc,omitempty"`
	LastMod    *string      `xml:"lastmod,omitempty"`
	Changefreq *string      `xml:"changefreq,omitempty"`
	Priority   *URLPriority `xml:"priority,omitempty"`
}

Jump to

Keyboard shortcuts

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