models

package
v0.0.0-...-54c5767 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Id       int64
	FeedId   int64
	FolderId int64

	Title   string
	Summary string
	Content string
	Link    string
	Date    time.Time
	Read    bool
}

func (*Article) Hash

func (a *Article) Hash() int64

type Feed

type Feed struct {
	Id       int64
	FolderId int64

	Title       string
	Description string
	Url         string
	Text        string
}

func (*Feed) Hash

func (a *Feed) Hash() int64

type Folder

type Folder struct {
	Id int64

	Name    string
	Feed    []Feed
	Folders []Folder
}
type Header struct {
	Title string `xml:"title"`
}

type Opml

type Opml struct {
	Header  Header
	Folders Folder
}

type OpmlInternal

type OpmlInternal struct {
	XMLName xml.Name  `xml:"opml"`
	Header  Header    `xml:"head"`
	Body    []Outline `xml:"body>outline"`
}

type Outline

type Outline struct {
	Title       string    `xml:"title,attr,omitempty"`
	Description string    `xml:"description,attr,omitempty"`
	Url         string    `xml:"xmlUrl,attr,omitempty"`
	Text        string    `xml:"text,attr,omitempty"`
	Folders     []Outline `xml:"outline,omitempty"`
}

Jump to

Keyboard shortcuts

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