controller

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RSStranslate

func RSStranslate(url string, engine string) (*etree.Document, error)

func StatusCode200

func StatusCode200(c *gin.Context)

func TranslateAPI

func TranslateAPI(c *gin.Context)

func TranslateRSS

func TranslateRSS(c *gin.Context)

Types

type Channel

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

type Item

type Item struct {
	XMLName xml.Name `xml:"item"`
	Title   string   `xml:"title"`
	Link    string   `xml:"link"`
	Desc    string   `xml:"description"`
}

type Rss

type Rss struct {
	XMLName xml.Name `xml:"RDF"`
	Channel Channel  `xml:"channel"`
}

Jump to

Keyboard shortcuts

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