Documentation
¶
Index ¶
- Constants
- Variables
- func Account(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func AddSubscription(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func AdminDateFormats(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func AdminFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func AdminStats(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func AdminSubHub(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func AdminUpdateFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func AdminUser(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func AllFeeds(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func AllFeedsOpml(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func Autodiscover(b []byte) (string, error)
- func Charge(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func ClearFeeds(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func DeleteAccount(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func DeleteBlobs(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func DeleteOldFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func DeleteOldFeeds(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func ExportOpml(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func FeedHistory(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func GetContents(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func GetFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func GetStars(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func ImportOpml(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func ImportOpmlTask(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func ListFeeds(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func LoginGoogle(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func Logout(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func Main(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func MarkRead(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func MarkUnread(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func ParseFeed(c appengine.Context, origUrl, fetchUrl string, b []byte) (*Feed, []*Story, error)
- func SaveOptions(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func SetStar(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func SubscribeCallback(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func SubscribeFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func Uncheckout(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func UpdateFeed(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func UpdateFeedLast(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func UpdateFeeds(c mpg.Context, w http.ResponseWriter, r *http.Request)
- func UploadOpml(c mpg.Context, w http.ResponseWriter, r *http.Request)
- type Feed
- type Image
- type Includes
- type Log
- type Opml
- type OpmlOutline
- type Plan
- type Read
- type Stories
- type Story
- type StoryContent
- type StripeCustomer
- type StripeError
- type User
- type UserCharge
- type UserData
- type UserOpml
- type UserStar
- type UserStarFeed
Constants ¶
View Source
const ( AFree = iota ADev APaid )
View Source
const IDX_COL = "c"
View Source
const IMPORT_LIMIT = 10
Variables ¶
View Source
var ( Angular string BootstrapCss string BootstrapJs string FontAwesome string Jquery string JqueryUI string Underscore string )
View Source
var ErrNoRssLink = errors.New("No rss link found")
Functions ¶
func AddSubscription ¶
func AdminDateFormats ¶
func AdminStats ¶
func AdminSubHub ¶
func AdminUpdateFeed ¶
func AllFeedsOpml ¶
func Autodiscover ¶
func ClearFeeds ¶
func DeleteAccount ¶
func DeleteBlobs ¶
func DeleteOldFeed ¶
func DeleteOldFeeds ¶
func ExportOpml ¶
func FeedHistory ¶
func GetContents ¶
func ImportOpml ¶
func ImportOpmlTask ¶
func LoginGoogle ¶
func MarkUnread ¶
func SaveOptions ¶
func SubscribeCallback ¶
func SubscribeFeed ¶
Task used to subscribe a feed to push.
func Uncheckout ¶
func UpdateFeed ¶
func UpdateFeedLast ¶
func UpdateFeeds ¶
func UploadOpml ¶
Types ¶
type Feed ¶
type Feed struct {
Url string `datastore:"-" goon:"id"`
Title string `datastore:"t,noindex"`
Updated time.Time `datastore:"u,noindex" json:"-"`
Date time.Time `datastore:"d,noindex" json:"-"`
Checked time.Time `datastore:"c,noindex"`
NextUpdate time.Time `datastore:"n"`
Link string `datastore:"l,noindex" json:"-"`
Hub string `datastore:"h,noindex" json:"-"`
Errors int `datastore:"e,noindex"`
Image string `datastore:"i,noindex"`
ImageDate time.Time `datastore:"g,noindex"`
Subscribed time.Time `datastore:"s,noindex" json:"-"`
Average time.Duration `datastore:"a,noindex" json:"-"`
LastViewed time.Time `datastore:"v" json:"-"`
NoAds bool `datastore:"o,noindex" json:"-"`
// contains filtered or unexported fields
}
func (*Feed) IsSubscribed ¶
type Includes ¶
type Includes struct {
Angular string
BootstrapCss string
BootstrapJs string
FontAwesome string
Jquery string
JqueryUI string
Underscore string
MiniProfiler template.HTML
User *User
Messages []string
GoogleAnalyticsId string
GoogleAnalyticsHost string
SubURL string
IsDev bool
IsAdmin bool
StripeKey string
StripePlans []Plan
}
type Opml ¶
type Opml struct {
XMLName string `xml:"opml"`
Version string `xml:"version,attr"`
Title string `xml:"head>title"`
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,omitempty" 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 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"`
Published time.Time `datastore:"p,noindex" 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 StripeCustomer ¶
type StripeCustomer struct {
Id string `json:"id"`
Created int64 `json:"created"`
Card struct {
Last4 string `json:"last4"`
} `json:"active_card"`
Subscription struct {
Plan struct {
Interval string `json:"interval"`
Id string `json:"id"`
Amount int `json:"amount"`
} `json:"plan"`
End int64 `json:"current_period_end"`
} `json:"subscription"`
}
type StripeError ¶
type StripeError struct {
Error struct {
Message string `json:"message"`
} `json:"error"`
}
type User ¶
type User struct {
Id string `datastore:"-" goon:"id"`
Email string `datastore:"e"`
Messages []string `datastore:"m,noindex"`
Read time.Time `datastore:"r"`
Options string `datastore:"o,noindex"`
Account int `datastore:"a"`
Created time.Time `datastore:"d"`
Until time.Time `datastore:"u"`
// contains filtered or unexported fields
}
type UserCharge ¶
type UserCharge struct {
Id int64 `datastore:"-" goon:"id"`
Parent *datastore.Key `datastore:"-" goon:"parent"`
Customer string `datastore:"c,noindex" json:"-"`
Created time.Time `datastore:"r,noindex"`
Last4 string `datastore:"l,noindex" json:"-"`
Next time.Time `datastore:"n,noindex"`
Amount int `datastore:"a,noindex"`
Interval string `datastore:"i,noindex"`
Plan string `datastore:"p,noindex"`
// contains filtered or unexported fields
}
parent: User, key: 1
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"
type UserOpml ¶
type UserOpml struct {
Id int64 `datastore:"-" goon:"id"`
Parent *datastore.Key `datastore:"-" goon:"parent"`
Opml []byte `datastore:"o,noindex"`
Compressed []byte `datastore:"z,noindex"`
// contains filtered or unexported fields
}
parent: User, key: time.Now().UnixNano()
type UserStar ¶
type UserStar struct {
Id string `datastore:"-" goon:"id"`
Parent *datastore.Key `datastore:"-" goon:"parent"`
Created time.Time `datastore:"c"`
// contains filtered or unexported fields
}
parent: UserStarFeed, key: Story.Key.Encode()
type UserStarFeed ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.