goapp

package
v0.0.0-...-6f39ca6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2013 License: ISC Imports: 49 Imported by: 0

Documentation

Index

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
	AngularSanitize string
	BootstrapCss    string
	BootstrapJs     string
	Jquery          string
	JqueryUI        string
	Underscore      string
)
View Source
var ErrNoRssLink = errors.New("No rss link found")

Functions

func Account

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

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 Charge

func Charge(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 Donate(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 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 MarkUnread

func MarkUnread(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 Uncheckout

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

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"`
	Average    time.Duration `datastore:"a,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
	AngularSanitize     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
	StripeKey           string
	StripePlans         []Plan
	GoogleAd            template.HTML
}

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 Plan

type Plan struct {
	Id, Name, Desc string
	Amount         int
}

type Read

type Read map[readStory]bool

type Stories

type Stories []*Story

func (Stories) Len

func (s Stories) Len() int

func (Stories) Less

func (s Stories) Less(i, j int) bool

func (Stories) Swap

func (s Stories) Swap(i, j int)

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,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,noindex"`
	Messages []string  `datastore:"m,noindex"`
	Read     time.Time `datastore:"r,noindex"`
	Options  string    `datastore:"o,noindex"`
	Account  int       `datastore:"a,noindex"`
	// contains filtered or unexported fields
}

func (*User) String

func (u *User) String() string

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"

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