1
0
mirror of https://github.com/labstack/echo.git synced 2025-11-06 08:59:21 +02:00

Added GAE recipe

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2015-10-07 17:04:51 -07:00
parent c60f207279
commit 5587974933
22 changed files with 295 additions and 33 deletions

View File

@@ -11,7 +11,7 @@ menu:
Use `req.ParseMultipartForm(16 << 20)` for manually parsing multipart form. It gives
us an option to specify the maximum memory used while parsing the request body.
## Server
### Server
`server.go`
@@ -73,7 +73,7 @@ func main() {
}
```
## Client
### Client
`index.html`
@@ -96,8 +96,8 @@ func main() {
</html>
```
## Maintainers
### Maintainers
- [vishr](http://github.com/vishr)
## [Source Code](https://github.com/labstack/echo/blob/master/recipes/file-upload)
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/file-upload)

View File

@@ -1,6 +1,6 @@
---
title: Google App Engine
draft: true
draft: false
menu:
main:
parent: recipes
@@ -241,7 +241,7 @@ be executed locally, on a full Compute Engine instance or any other traditional
(including EC2, Docker etc...). This build will ignore the code in appengine and appenginevm tagged
files and the `app.yaml` file is meaningless to anything other than the AppEngine platform.
We can also run locally using the [Google AppEngine SDK for GO](https://cloud.google.com/appengine/downloads)
We can also run locally using the [Google AppEngine SDK for Go](https://cloud.google.com/appengine/downloads)
either emulating [AppEngine Classic](https://cloud.google.com/appengine/docs/go/tools/devserver):
goapp serve
@@ -258,4 +258,8 @@ switching between AppEngine provided service such as Datastore and alternative s
such as MongoDB. A combination of go interfaces and build constraints can make this fairly straightforward
but is outside the scope of this recipe.
## [Source Code](https://github.com/labstack/echo/blob/master/recipes/google-app-engine)
### Maintainers
- [CaptainCodeman](https://github.com/CaptainCodeman)
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/google-app-engine)

View File

@@ -56,12 +56,12 @@ func main() {
}
```
## Maintainers
### Maintainers
- (mertenvg)[https://github.com/mertenvg]
- [mertenvg](https://github.com/mertenvg)
## Source Code
### Source Code
[`graceful`](https://github.com/labstack/echo/blob/master/recipes/graceful-shutdown/graceful)
[graceful](https://github.com/labstack/echo/blob/master/recipes/graceful-shutdown/graceful)
[`grace`](https://github.com/labstack/echo/blob/master/recipes/graceful-shutdown/grace)
[grace](https://github.com/labstack/echo/blob/master/recipes/graceful-shutdown/grace)

View File

@@ -7,7 +7,7 @@ menu:
JSONP is a method that allows cross-domain server calls. You can read more about it at the JSON versus JSONP Tutorial.
## Server
### Server
`server.go`
@@ -45,7 +45,7 @@ func main() {
}
```
## Client
### Client
`index.html`
@@ -88,8 +88,8 @@ func main() {
</html>
```
## Maintainers
### Maintainers
- [willf](http://github.com/willf)
## [Source Code](https://github.com/labstack/echo/blob/master/recipes/jsonp)
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/jsonp)

View File

@@ -153,8 +153,8 @@ func main() {
$ curl localhost:1323/restricted -H "Authorization: Bearer <token>" => Access granted with JWT.
```
## Maintainers
### Maintainers
- [axdg](http://github.com/axdg)
## [Source Code](https://github.com/labstack/echo/blob/master/recipes/jwt-authentication)
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/jwt-authentication)

View File

@@ -8,7 +8,7 @@ menu:
- Streaming multipart/form-data file upload
- Multiple form fields and files
## Server
### Server
`server.go`
@@ -94,7 +94,7 @@ func main() {
}
```
## Client
### Client
`index.html`
@@ -118,8 +118,8 @@ func main() {
```
## Maintainers
### Maintainers
- [vishr](http://github.com/vishr)
## [Source Code](https://github.com/labstack/echo/blob/master/recipes/streaming-file-upload)
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/streaming-file-upload)

View File

@@ -8,7 +8,7 @@ menu:
- Send data as it is produced
- Streaming JSON response with chunked transfer encoding
## Server
### Server
`server.go`
@@ -60,7 +60,7 @@ func main() {
}
```
## Client
### Client
```sh
$ curl localhost:1323
@@ -76,8 +76,8 @@ $ curl localhost:1323
{"Altitude":15,"Latitude":37.77493,"Longitude":-122.419416}
```
## Maintainers
### Maintainers
- [vishr](http://github.com/vishr)
## [Source Code](https://github.com/labstack/echo/blob/master/recipes/streaming-response)
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/streaming-response)

View File

@@ -77,9 +77,9 @@ func main() {
}
```
## Maintainers
### Maintainers
- [axdg](http://github.com/axdg)
- [vishr](http://github.com/axdg)
## [Source Code](https://github.com/labstack/echo/blob/master/recipes/subdomains)
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/subdomains)

View File

@@ -5,7 +5,7 @@ menu:
parent: recipes
---
## Server
### Server
`server.go`
@@ -47,7 +47,7 @@ func main() {
}
```
## Client
### Client
`index.html`
@@ -90,7 +90,7 @@ func main() {
</html>
```
## Output
### Output
`Client`
@@ -112,8 +112,8 @@ Hello, Server!
Hello, Server!
```
## Maintainers
### Maintainers
- [vishr](http://github.com/vishr)
## [Source Code](https://github.com/labstack/echo/blob/master/recipes/websocket)
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/websocket)