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 ¶
var BucketName string // Name of your GCS bucket https://cloud.google.com/appengine/docs/go/googlecloudstorageclient/
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.