websitemap

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SITEMAP_PAGESIZE = 10000

Variables

This section is empty.

Functions

func Index

func Index(c server.Context) error

func Post

func Post(c server.Context) error

func Topic

func Topic(c server.Context) error

func User

func User(c server.Context) error

Types

type SitemapImage

type SitemapImage struct {
	XMLName xml.Name `xml:"image:image"`
	Loc     *SitemapImageLoc
}

type SitemapImageLoc

type SitemapImageLoc struct {
	XMLName xml.Name `xml:"image:loc"`
	Value   string   `xml:",chardata"`
}

type SitemapItem

type SitemapItem struct {
	Loc     *SitemapLoc
	LastMod *SitemapLastMod
}

type SitemapItems

type SitemapItems struct {
	XMLName xml.Name       `xml:"sitemapindex"`
	Xmlns   string         `xml:"xmlns,attr"`
	Items   []*SitemapItem `xml:"sitemap"`
}

type SitemapLastMod

type SitemapLastMod struct {
	XMLName xml.Name `xml:"lastmod"`
	Value   string   `xml:",chardata"`
}

type SitemapLoc

type SitemapLoc struct {
	XMLName xml.Name `xml:"loc"`
	Value   string   `xml:",chardata"`
}

type SitemapUrl

type SitemapUrl struct {
	Loc     *SitemapLoc
	LastMod *SitemapLastMod
	Image   *SitemapImage
}

type SitemapUrlSets

type SitemapUrlSets struct {
	XMLName             xml.Name      `xml:"urlset"`
	Xmlns               string        `xml:"xmlns,attr"`
	XmlnsXsi            string        `xml:"xmlns:xsi,attr"`
	XmlnsImage          string        `xml:"xmlns:image,attr"`
	XmlnsSchemaLocation string        `xml:"xsi:schemaLocation,attr"`
	Urls                []*SitemapUrl `xml:"url"`
}

Jump to

Keyboard shortcuts

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