goapp

package
v0.0.0-...-ba627c3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2014 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION = "0.1.1"
)

Variables

View Source
var (
	BootstrapCss string
	BootstrapJs  string
	Jquery       string
)

Functions

func DownloadRun

func DownloadRun(c *Context, params martini.Params)

func Index

func Index(c *Context)

func LoginGoogle

func LoginGoogle(c *Context)

func LogoutGoogle

func LogoutGoogle(c *Context)

func NotFound

func NotFound(c *Context)

func ProcessRun

func ProcessRun(c *Context)

func RunPOST

func RunPOST(c *Context, params martini.Params)

func Runs

func Runs(c *Context)

func UploadRun

func UploadRun(c *Context)

func UploadRunDone

func UploadRunDone(c *Context)

func ViewRun

func ViewRun(c *Context, params martini.Params)

func ViewUser

func ViewUser(c *Context, params martini.Params)

Types

type Context

type Context struct {
	*mpg.Context

	ID         string
	Req        *http.Request // We have to name it this or it conflicts with the appengine.Context interface
	Response   martini.ResponseWriter
	IncludesWG *sync.WaitGroup
	GlobalWG   *sync.WaitGroup
	RenderWG   *sync.WaitGroup

	Goon *goon.Goon
	// contains filtered or unexported fields
}

func (*Context) FillRenderParams

func (c *Context) FillRenderParams(filler Includes)

Fills the render parameters from a map.

func (*Context) GetRenderParam

func (c *Context) GetRenderParam(key string) (value interface{}, ok bool)

Gets one of the render parameters. This should be called rather than directly manipulating the map.

func (*Context) Render

func (c *Context) Render()

func (*Context) RunInTransaction

func (c *Context) RunInTransaction(f func(*Context) error, opts *datastore.TransactionOptions) error

func (*Context) SetRenderParam

func (c *Context) SetRenderParam(key string, value interface{})

Sets one of the render parameters. This should be called rather than directly manipulating the map.

func (*Context) Step

func (c *Context) Step(name string, f func(*Context))

type Includes

type Includes map[string]interface{}

Jump to

Keyboard shortcuts

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