flickr

package
v0.0.0-...-d3bdce1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2014 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthPath       = "/flickrauth"
	ConfigPath     = "/flickrconfig"
	FlickrProvider = oauth.ServiceProvider{
		RequestTokenUrl:   "http://www.flickr.com/services/oauth/request_token",
		AuthorizeTokenUrl: "http://www.flickr.com/services/oauth/authorize",
		AccessTokenUrl:    "http://www.flickr.com/services/oauth/access_token",
	}
)

Functions

func AuthorizeHandler

func AuthorizeHandler(w http.ResponseWriter, r *http.Request)

func ConfigHandler

func ConfigHandler(w http.ResponseWriter, r *http.Request)

func MaybeGetAuth

func MaybeGetAuth(c appengine.Context, u string) *userConfig

func UploadGarbage

func UploadGarbage(w http.ResponseWriter, r *http.Request)

Types

type AccessToken

type AccessToken struct {
	Token          string
	Secret         string
	AdditionalData []keyValue
}

type Photo

type Photo interface {
	Metadata() (globalUid, album, title string)
	Body() (io.ReadCloser, error)
}

type PhotoSink

type PhotoSink struct {
	// contains filtered or unexported fields
}

func NewPhotoSink

func NewPhotoSink(config *userConfig, source chan Photo, done chan bool) *PhotoSink

func (*PhotoSink) Loop

func (p *PhotoSink) Loop()

Blocking

Jump to

Keyboard shortcuts

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