meta

package
v0.0.0-...-9a2d8fb Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2013 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentStatusUnresolved = iota
	ContentStatusReady      // content has been stored in a file
	ContentStatusFailed     // fetch content failed
	ContentStatusUnavail    // fetch content ok, buy extracted-body is low quality
	ContentStatusSummary    // content stored in Entry.Summary
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Title   string    `title,omitempty"`
	Refresh time.Time `refresh`
}

type ContentStatis

type ContentStatis struct {
	Local string `local,omitempty`
	Words int    `words`
	Imgs  int    `imgs`
}

type Entry

type Entry struct {
	Title   string    `title`
	Updated time.Time `updated`
	Author  string    `author,omitempty`
	Summary string    `summary,omitempty`

	Guid     string    `guid,omitempty` //guid or link
	Link     string    `link`
	Created  time.Time `created` // fetch date, not the publish date
	Readed   bool      `readed`
	Feed     string    `feed,omitempty` // feed's link
	Category []string  `catetory`       // feed's category + items category

	Status  int           `status`
	Content ContentStatis `content`
	Statis  EntryStatis   `statis`
	Image   []string      `image`
}

type EntryStatis

type EntryStatis struct {
	Words int `words`
	Imgs  int `imgs`
}

type Feed

type Feed struct {
	Title    string    `title,omitempty`
	Link     string    `link,omitempty`     // rss url, not the web site, as primary key
	Refresh  time.Time `refresh`            // next refresh time
	TTL      int       `ttl`                // minutes      refresh period
	Category []string  `catetory,omitempty` // Category
	Disabled bool      `disabled`
}

type Image

type Image struct {
	Link    string    `link,omitempty`
	Local   string    `local,omitempty`
	Ready   int       `ready`
	Created time.Time `created`
}

Jump to

Keyboard shortcuts

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