handler

package
v0.0.0-...-24a3731 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RSSAggregateHandler

func RSSAggregateHandler(c echo.Context) error

func RSSFeedHandler

func RSSFeedHandler(c echo.Context) error

Types

type Channel

type Channel struct {
	Title string `xml:"title"`
	Link  string `xml:"link"`
	Desc  string `xml:"description"`
	Items []Item `xml:"item"`
}

type Item

type Item struct {
	Title   string `xml:"title"`
	Link    string `xml:"link"`
	Desc    string `xml:"description"`
	Guid    string `xml:"guid"`
	Source  string `xml:"source"`
	Author  string `xml:"author"`
	PubDate string `xml:"pubDate"`
}

type RSS

type RSS struct {
	Channel Channel `xml:"channel"`
}

type RSSFeed

type RSSFeed struct {
	Updated     time.Time     //`json:"LastUpdated"`
	RSSFeedList []RSSFeedItem //`json:"RSSFeedList"`
}

type RSSFeedItem

type RSSFeedItem struct {
	PubDate time.Time `json:"pubDate"`
	Title   string    `json:"title"`
	Link    string    `json:"link"`
	Desc    string    `json:"description"`
	Guid    string    `json:"guid,omitempty"`
	Source  string    `json:"source,omitempty"`
	Author  string    `json:"author,omitempty"`
}

Jump to

Keyboard shortcuts

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