Comments (4)
gin 已经完成: https://github.com/devsapp/start-web-framework/tree/master/web-framework/go/gin/src
from start-web-framework.
web 框架还需要增加 golang 的示例
- gin
- beego
和之前的 fun 对齐, 有国际站的用户找过来,还是 funcraft 的示例
请问在这些框架类如何实现生命周期回调函数?文档只看到用fc这个的
// 注册Initializer回调方法
fc.RegisterInitializerFunction(initialize)
// 注册PreStop回调方法
fc.RegisterPreStopFunction(preStop)
// 注册PreFreeze回调方法
fc.RegisterPreFreezeFunction(preFreeze)
还是说必须用控制台设置(实现几个api,比如/initialize)
from start-web-framework.
hi, @rsonghuster 这两个部分有什么关系吗?他们分别的作用是什么,按照你的示例去修改已有项目出现以下错误
{
"ErrorCode": "InvalidArgument",
"ErrorMessage": "Failed to start function, Code: 1, msg: function not ready:timed out after 30000 millis.:[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n\n[GIN-debug] [WARNING] Running in \"debug\" mode. Switch to \"release\" mode in production.\n - using env:\texport GIN_MODE=release\n - using code:\tgin.SetMode(gin.ReleaseMode)\n\n[GIN-debug] GET /ping --> main.main.func1 (3 handlers)\n[GIN-debug] GET / --> main.main.func2 (3 handlers)\n[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.\nPlease check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.\n[GIN-debug] Environment variable PORT is undefined. Using port :8080 by default\n[GIN-debug] Listening and serving HTTP on :8080\n\n"
}
from start-web-framework.
and this
{
"ErrorCode": "CAFileNotFound",
"ErrorMessage": "The function cannot be started. Failed to start function instance. Error: the file /code/cmd/app/app is not exist"
}
from start-web-framework.
Related Issues (20)
- hapi 应用存在问题 HOT 2
- 升级wordpress版本或安装插件时会超时失败并且提示502错误 HOT 1
- Django示例项目的static静态资源无法访问 HOT 1
- 客户端cookies 不能带phpsessionid HOT 1
- 支持下fpm吧 HOT 1
- thinkjs 应用问题 HOT 1
- 部署后报Function instance exited unexpectedly HOT 2
- 请问如果我想用自己编译的nginx要怎么做? HOT 1
- 【framework】增加remix 的 示例代码
- 在阿里云函数fc直接部署typecho会报错
- python 的模版 requirements.txt 最好都固定下版本
- remove start-wordpress 报 404 错误
- web 框架还需要增加 strapi 的示例 HOT 2
- 为什么使用self.render去到浏览器变成了下载 HOT 3
- 使用docker部署时如何映射文件路径?
- discourse support
- node.js示例应用重新部署会报错
- 创建了一个nginx应用,想放静态网站,文件应该放在哪个目录? HOT 1
- gin的例子 在执行s deploy 后报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from start-web-framework.