goapp

package
v0.0.0-...-0f19540 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2013 License: ISC Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const IDX_COL = "p"
View Source
const IMPORT_LIMIT = 10
View Source
const UpdateTime = time.Hour * 3

Variables

View Source
var (
	Angular      string
	BootstrapCss string
	BootstrapJs  string
	Jquery       string
	JqueryUI     string
	Underscore   string
)
View Source
var ErrNoRssLink = errors.New("No rss link found")

Functions

func AddSubscription

func AddSubscription(c mpg.Context, w http.ResponseWriter, r *http.Request)

func AdminDateFormats

func AdminDateFormats(c mpg.Context, w http.ResponseWriter, r *http.Request)

func AdminFeed

func AdminFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)

func AdminStats

func AdminStats(c mpg.Context, w http.ResponseWriter, r *http.Request)

func AdminUpdateFeed

func AdminUpdateFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)

func AllFeeds

func AllFeeds(c mpg.Context, w http.ResponseWriter, r *http.Request)

func AllFeedsOpml

func AllFeedsOpml(c mpg.Context, w http.ResponseWriter, r *http.Request)

func Autodiscover

func Autodiscover(b []byte) (string, error)

func BackendStart

func BackendStart(c mpg.Context, w http.ResponseWriter, r *http.Request)

func BackendStop

func BackendStop(c mpg.Context, w http.ResponseWriter, r *http.Request)

func CFix

func CFix(c mpg.Context, w http.ResponseWriter, r *http.Request)

func CFixer

func CFixer(c mpg.Context, w http.ResponseWriter, r *http.Request)

func ClearFeeds

func ClearFeeds(c mpg.Context, w http.ResponseWriter, r *http.Request)

func DeleteAccount

func DeleteAccount(c mpg.Context, w http.ResponseWriter, r *http.Request)

func ExportOpml

func ExportOpml(c mpg.Context, w http.ResponseWriter, r *http.Request)

func GetContents

func GetContents(c mpg.Context, w http.ResponseWriter, r *http.Request)

func GetFeed

func GetFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)

func ImportOpml

func ImportOpml(c mpg.Context, w http.ResponseWriter, r *http.Request)

func ImportOpmlTask

func ImportOpmlTask(c mpg.Context, w http.ResponseWriter, r *http.Request)

func ImportReader

func ImportReader(c mpg.Context, w http.ResponseWriter, r *http.Request)

func ImportReaderTask

func ImportReaderTask(c mpg.Context, w http.ResponseWriter, r *http.Request)

func ListFeeds

func ListFeeds(c mpg.Context, w http.ResponseWriter, r *http.Request)

func LoginGoogle

func LoginGoogle(c mpg.Context, w http.ResponseWriter, r *http.Request)

func Logout

func Logout(c mpg.Context, w http.ResponseWriter, r *http.Request)

func Main

func Main(c mpg.Context, w http.ResponseWriter, r *http.Request)

func MarkAllRead

func MarkAllRead(c mpg.Context, w http.ResponseWriter, r *http.Request)

func MarkRead

func MarkRead(c mpg.Context, w http.ResponseWriter, r *http.Request)

func Oauth2Callback

func Oauth2Callback(c mpg.Context, w http.ResponseWriter, r *http.Request)

func ParseFeed

func ParseFeed(c appengine.Context, u string, b []byte) (*Feed, []*Story)

func Sanitize

func Sanitize(s string, u *url.URL) (string, string)

func SaveOptions

func SaveOptions(c mpg.Context, w http.ResponseWriter, r *http.Request)

func SubscribeCallback

func SubscribeCallback(c mpg.Context, w http.ResponseWriter, r *http.Request)

func SubscribeFeed

func SubscribeFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)

func Timeout

Timeout returns a replacement context that uses d as the default API RPC timeout.

func UpdateFeed

func UpdateFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)

func UpdateFeeds

func UpdateFeeds(c mpg.Context, w http.ResponseWriter, r *http.Request)

func UploadOpml

func UploadOpml(c mpg.Context, w http.ResponseWriter, r *http.Request)

Types

type DateFormat

type DateFormat struct {
	Id string `datastore:"-" goon:"id"`

	Parent *datastore.Key `datastore:"-" goon:"parent"`
	// contains filtered or unexported fields
}

type Feed

type Feed struct {
	Url        string    `datastore:"-" goon:"id"`
	Title      string    `datastore:"t,noindex"`
	Updated    time.Time `datastore:"u,noindex"`
	Date       time.Time `datastore:"d,noindex"`
	Checked    time.Time `datastore:"c,noindex"`
	NextUpdate time.Time `datastore:"n"`
	Link       string    `datastore:"l,noindex"`
	Errors     int       `datastore:"e,noindex"`
	Image      string    `datastore:"i,noindex"`
	Subscribed time.Time `datastore:"s,noindex"`
	// contains filtered or unexported fields
}

func (Feed) IsSubscribed

func (f Feed) IsSubscribed() bool

func (Feed) PubSubURL

func (f Feed) PubSubURL() string

func (Feed) Subscribe

func (f Feed) Subscribe(c appengine.Context)

type Image

type Image struct {
	Id   string            `datastore:"-" goon:"id"`
	Blob appengine.BlobKey `datastore:"b,noindex"`
	Url  string            `datastore:"u,noindex"`
}

type Includes

type Includes struct {
	Angular             string
	BootstrapCss        string
	BootstrapJs         string
	Jquery              string
	JqueryUI            string
	Underscore          string
	MiniProfiler        template.HTML
	User                *User
	Messages            []string
	GoogleAnalyticsId   string
	GoogleAnalyticsHost string
	IsDev               bool
	IsAdmin             bool
}

type Opml

type Opml struct {
	XMLName string         `xml:"opml"`
	Version string         `xml:"version,attr"`
	Outline []*OpmlOutline `xml:"body>outline"`
}

type OpmlOutline

type OpmlOutline struct {
	Outline []*OpmlOutline `xml:"outline" json:",omitempty"`
	Title   string         `xml:"title,attr,omitempty" json:",omitempty"`
	XmlUrl  string         `xml:"xmlUrl,attr" json:",omitempty"`
	Type    string         `xml:"type,attr,omitempty" json:",omitempty"`
	Text    string         `xml:"text,attr,omitempty" json:",omitempty"`
	HtmlUrl string         `xml:"htmlUrl,attr,omitempty" json:",omitempty"`
}

type Read

type Read map[string][]string

type Story

type Story struct {
	Id           string         `datastore:"-" goon:"id"`
	Parent       *datastore.Key `datastore:"-" goon:"parent" json:"-"`
	Title        string         `datastore:"t,noindex"`
	Link         string         `datastore:"l,noindex"`
	Created      time.Time      `datastore:"c" json:"-"`
	Published    time.Time      `datastore:"p" json:"-"`
	Updated      time.Time      `datastore:"u,noindex" json:"-"`
	Date         int64          `datastore:"e,noindex"`
	Author       string         `datastore:"a,noindex" json:",omitempty"`
	Summary      string         `datastore:"s,noindex"`
	MediaContent string         `datastore:"m,noindex" json:",omitempty"`
	// contains filtered or unexported fields
}

parent: Feed, key: story ID

type StoryContent

type StoryContent struct {
	Id         int64          `datastore:"-" goon:"id"`
	Parent     *datastore.Key `datastore:"-" goon:"parent"`
	Content    string         `datastore:"c,noindex"`
	Compressed []byte         `datastore:"z,noindex"`
	// contains filtered or unexported fields
}

parent: Story, key: 1

type User

type User struct {
	Id       string    `datastore:"-" goon:"id"`
	Email    string    `datastore:"e,noindex"`
	Messages []string  `datastore:"m,noindex"`
	Read     time.Time `datastore:"r,noindex"`
	Options  string    `datastore:"o,noindex"`
	// contains filtered or unexported fields
}

func (*User) String

func (u *User) String() string

type UserData

type UserData struct {
	Id     string         `datastore:"-" goon:"id"`
	Parent *datastore.Key `datastore:"-" goon:"parent"`
	Opml   []byte         `datastore:"o,noindex"`
	Read   []byte         `datastore:"r,noindex"`
	// contains filtered or unexported fields
}

parent: User, key: "data"

Directories

Path Synopsis
Package atom defines XML data structures for an Atom feed.
Package atom defines XML data structures for an Atom feed.
Package rss provides a basic interface for processing RSS version 2.0 feeds
Package rss provides a basic interface for processing RSS version 2.0 feeds

Jump to

Keyboard shortcuts

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