http

package
v0.0.0-...-85aba21 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandler

func AddHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func CompileTemplate

func CompileTemplate(name string, files ...string) (*template.Template, error)

func CrumbHandler

func CrumbHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func DebugHandler

func DebugHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func EnsureLoggedIn

func EnsureLoggedIn(pr login.Provider, rsp gohttp.ResponseWriter, req *gohttp.Request) user.User

func FeedsHandler

func FeedsHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func GenerateCrumb

func GenerateCrumb(pr login.Provider, req *gohttp.Request, extra ...string) (string, error)

func GetInt64

func GetInt64(req *gohttp.Request, param string) (int64, error)

func GetString

func GetString(req *gohttp.Request, param string) (string, error)

func IndexHandler

func IndexHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func ItemHandler

func ItemHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func PostInt64

func PostInt64(req *gohttp.Request, param string) (int64, error)

func PostString

func PostString(req *gohttp.Request, param string) (string, error)

func RecentItemsHandler

func RecentItemsHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func SearchHandler

func SearchHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func SigninHandler

func SigninHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func SignoutHandler

func SignoutHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func SignupHandler

func SignupHandler(fr *reader.FeedReader) (gohttp.Handler, error)

func ValidateCrumb

func ValidateCrumb(pr login.Provider, req *gohttp.Request) error

Types

type Author

type Author struct {
	Name string
	URI  string
}

type CrumbVars

type CrumbVars struct {
	PageTitle string
	Crumb     string
	User      user.User
	Error     error
}

type DebugVars

type DebugVars struct {
	Feed Feed
}

type Entry

type Entry struct {
	Id        string
	Link      string
	Title     string
	Published string
	Updated   string
	Content   string
}

type Feed

type Feed struct {
	Title    string
	Subtitle string
	Id       string
	Updated  string
	Link     string
	Author   Author
	Entries  []Entry
}

type FeedVars

type FeedVars struct {
	PageTitle  string
	Feeds      []*gofeed.Feed
	Pagination pagination.Pagination
	URL        *url.URL
	User       user.User
}

type FormVars

type FormVars struct {
	PageTitle string
	Crumb     string
	User      user.User
}

type IndexVars

type IndexVars struct {
	PageTitle string
	User      user.User
}

type ItemVars

type ItemVars struct {
	PageTitle string
	Item      *gofeed.Item
	Feed      *gofeed.Feed
	User      user.User
}

type PostVars

type PostVars struct {
	PageTitle string
	Crumb     string
	Items     []*gofeed.Item
	User      user.User
}

type RecentItemsVars

type RecentItemsVars struct {
	PageTitle  string
	Items      []*gofeed.Item
	Pagination pagination.Pagination
	URL        *url.URL
	User       user.User
}

type ResultsVars

type ResultsVars struct {
	PageTitle  string
	Items      []*gofeed.Item
	Query      string
	Pagination pagination.Pagination
	URL        *url.URL
	User       user.User
}

type SearchFormVars

type SearchFormVars struct {
	PageTitle string
	User      user.User
}

type SigninVars

type SigninVars struct {
	PageTitle string
	Crumb     string
	Error     error
	User      user.User
}

type SignoutVars

type SignoutVars struct {
	PageTitle string
	Crumb     string
	Error     error
	User      user.User
}

type SignupVars

type SignupVars struct {
	PageTitle string
	Crumb     string
	User      user.User
}

Jump to

Keyboard shortcuts

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