model

package
v0.0.0-...-123d3be Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package model provides the model

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

Channel contains title, link, description, items

type Config

type Config struct {
	DownloadPath string   `yaml:"download_path"`
	List         []string `yaml:"list"`
}

Config dexcribes the configuration of the app

type Enclosure

type Enclosure struct {
	XMLName    xml.Name `xml:"enclosure"`
	TorrentUrl string   `xml:"url,attr"`
}

Enclosure contains torrenturl

type Item

type Item struct {
	XMLName   xml.Name  `xml:"item"`
	Title     string    `xml:"title"`
	Category  string    `xml:"category"`
	Author    string    `xml:"author"`
	Link      string    `xml:"link"`
	GUID      string    `xml:"guid"`
	PubDate   string    `xml:"pubdate"`
	Enclosure Enclosure `xml:"enclosure"`
}

Item contains title, category, author, link, guid, pubdate, enclosure

type Rss

type Rss struct {
	XMLName xml.Name `xml:"rss"`
}

Rss contains version

type RssFeed

type RssFeed struct {
	Rss     string  `xml:"rss"`
	Channel Channel `xml:"channel"`
}

RssFeed contains Rss and Channel

Jump to

Keyboard shortcuts

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