Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumeapp/gin
Gin adapter for Fume
https://github.com/fumeapp/gin
aws gin go lambda serverless
Last synced: about 18 hours ago
JSON representation
Gin adapter for Fume
- Host: GitHub
- URL: https://github.com/fumeapp/gin
- Owner: fumeapp
- License: apache-2.0
- Created: 2022-08-17T19:57:44.000Z (about 2 years ago)
- Default Branch: production
- Last Pushed: 2022-08-18T20:24:42.000Z (about 2 years ago)
- Last Synced: 2024-06-19T05:44:09.301Z (5 months ago)
- Topics: aws, gin, go, lambda, serverless
- Language: Go
- Homepage: https://fume.app
- Size: 38.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Fume adapter for Gin
[![Go Reference][1]][2]
[![GoCard][3]][4][1]: https://pkg.go.dev/badge/github.com/fumeapp/gin.svg
[2]: https://pkg.go.dev/github.com/fumeapp/gin
[3]: https://goreportcard.com/badge/github.com/fumeapp/gin
[4]: https://goreportcard.com/report/github.com/fumeapp/ginThis is a simple adapter for [Gin](https://github.com/gin-gonic/gin) that allows you to deploy your application using Fume.
```go
package mainimport (
fume "github.com/fumeapp/gin"
"github.com/gin-gonic/gin"
)func main() {
routes := gin.New()
routes.GET("/", func(c *gin.Context) { c.JSON(200, gin.H{"message": "Hello World"}) })
fume.Start(routes, fume.Options{})
}
```## Options
| Option | Description | Default |
| ------ | ----------- | ------- |
| `Port` | Port to listen on | `8080` |
| `Host` | Host to listen on | `localhost` |