s:用于微服务的go web构架,非常易于创建和部署,具有自动服务注册和发现功能,高性能,基于http2 no ssl

上传者: 42100188 | 上传时间: 2023-10-19 02:56:29 | 文件大小: 67KB | 文件类型: ZIP
Go的一个服务框架 ssgo能以非常简单的方式快速部署成为微服务群 开始使用 如果您的电脑go version >= 1.11,使用以下命令初始化依赖自定义sshow: go mod init sshow go mod tidy 1、下载并安装s go get -u github.com/ssgo/s 2、在项目代码中导入它 import "github.com/ssgo/s" 快速构建一个服务 start.go: package main import "github.com/ssgo/s" func main() { s.Restful(0, "GET", "/hello", func() string{ return "Hello ssgo\n" }) s.Start() } 即可快速构建出一个8080端口可访问的服务: export service_listen=:808

文件下载

资源详情

[{"title":"( 44 个子文件 67KB ) s:用于微服务的go web构架,非常易于创建和部署,具有自动服务注册和发现功能,高性能,基于http2 no ssl","children":[{"title":"s-master","children":[{"title":"Starter.go <span style='color:#111;'> 5.38KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 31B </span>","children":null,"spread":false},{"title":"go.mod <span style='color:#111;'> 447B </span>","children":null,"spread":false},{"title":"DocTpl.html <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false},{"title":"Utility.go <span style='color:#111;'> 8.07KB </span>","children":null,"spread":false},{"title":"ErrorCode.go <span style='color:#111;'> 220B </span>","children":null,"spread":false},{"title":"HttpServ.go <span style='color:#111;'> 22.15KB </span>","children":null,"spread":false},{"title":"Server.go <span style='color:#111;'> 17.01KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"Tpl.go <span style='color:#111;'> 979B </span>","children":null,"spread":false},{"title":"UA.go <span style='color:#111;'> 7.23KB </span>","children":null,"spread":false},{"title":"Rewrite.go <span style='color:#111;'> 5.87KB </span>","children":null,"spread":false},{"title":"discoverTests","children":[{"title":"discover_test.go <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"httpBench_test.go <span style='color:#111;'> 838B </span>","children":null,"spread":false},{"title":"discoverBench_test.go <span style='color:#111;'> 418B </span>","children":null,"spread":false}],"spread":true},{"title":"discoverDemo","children":[{"title":"controller.go <span style='color:#111;'> 575B </span>","children":null,"spread":false},{"title":"startAll.sh <span style='color:#111;'> 508B </span>","children":null,"spread":false},{"title":"api.go <span style='color:#111;'> 292B </span>","children":null,"spread":false},{"title":"service.go <span style='color:#111;'> 279B </span>","children":null,"spread":false}],"spread":false},{"title":"README.md <span style='color:#111;'> 30.87KB </span>","children":null,"spread":false},{"title":"demo","children":[{"title":"env.json <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"start.go <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"demoWebsocket.go_ <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false}],"spread":false},{"title":"CountTime.go <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"Proxy.go <span style='color:#111;'> 14.86KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"utility_test.go <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"service_test.go <span style='color:#111;'> 7.01KB </span>","children":null,"spread":false},{"title":"websocket_test.go <span style='color:#111;'> 4.86KB </span>","children":null,"spread":false},{"title":"doc_test.go <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"h2_test.go <span style='color:#111;'> 413B </span>","children":null,"spread":false},{"title":"rewrite_test.go <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"statistic_test.go <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"web_test.go <span style='color:#111;'> 3.18KB </span>","children":null,"spread":false},{"title":"www","children":[{"title":"index.html <span style='color:#111;'> 33B </span>","children":null,"spread":false},{"title":"aaa","children":[{"title":"111.json <span style='color:#111;'> 3B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"echoServices.go <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"logger_inject_test.go <span style='color:#111;'> 3.37KB </span>","children":null,"spread":false},{"title":"bigresult_test.go <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":false},{"title":"WebSocket.go <span style='color:#111;'> 16.08KB </span>","children":null,"spread":false},{"title":"Static.go <span style='color:#111;'> 3.16KB </span>","children":null,"spread":false},{"title":"WebService.go <span style='color:#111;'> 16.76KB </span>","children":null,"spread":false},{"title":"ServiceTester.go <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false},{"title":"service.json.sample <span style='color:#111;'> 660B </span>","children":null,"spread":false},{"title":"Document.go <span style='color:#111;'> 6.63KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明