controllers

package
v0.0.0-...-3f1d4cc Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Controllers routes requests to the approriate data and views for rending that data.

EXAMPLE FROM: https://github.com/GoogleCloudPlatform/appengine-angular-gotodos

Copyright 2013 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type MainController

type MainController struct {
	beegae.Controller
}

func (*MainController) Get

func (this *MainController) Get()

type StoreController

type StoreController struct {
	beegae.Controller
}

func (*StoreController) Get

func (this *StoreController) Get()

Get if passed a name looks for that image and shows it Otherwise, all images in GCS are rendered on the page.

func (*StoreController) List

func (this *StoreController) List(ctx context.Context)

type UploadController

type UploadController struct {
	beegae.Controller
}

func (*UploadController) Get

func (this *UploadController) Get()

Render a form for submitting file data

func (*UploadController) Post

func (this *UploadController) Post()

Post takes as input a form with file data. This is stored in the configured GCS bucket.

Jump to

Keyboard shortcuts

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