app

package module
v0.0.0-...-0f6a02a Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2016 License: MIT Imports: 21 Imported by: 0

README

Chparty

Web application for "Which party are you going to support in 2015?"

Development

Chaparty is written in Golang and runs on Google App Engine. Please note that App Engine Golang runtime comes with its own complete Golang toolchain and does not relate to host Golang installation.

Contributing

  1. Fork it (https://github.com/trhura/chaparty)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APPSECRET = os.Getenv("APPSECRET")
View Source
var FbApp = fb.New(clientID, APPSECRET)
View Source
var THELOGOIMAGES = loadLogos(nil, "./logos", "./ribbons", "./sp")

Functions

func CreateImageForm

func CreateImageForm(imageBytes *[]byte, context appengine.Context) (*bytes.Buffer, string)

func GetUserPhoto

func GetUserPhoto(photoResp *fb.Result, context appengine.Context) *image.Image

func MainHandler

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

func SaveAboutUser

func SaveAboutUser(aboutResp *fb.Result, party string, context appengine.Context)

func StaticHandler

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

func UploadPhoto

func UploadPhoto(accessToken string, party string, context appengine.Context) string

func WebHandler

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

Types

type Log

type Log struct {
	Name     string
	Gender   string
	Party    string
	Email    string
	AgeRange int
	Location string
}

Jump to

Keyboard shortcuts

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