nats.go:NATS(云原生消息传递系统)的Golang客户端-源码

上传者: 42125770 | 上传时间: 2021-02-02 16:35:44 | 文件大小: 198KB | 文件类型: ZIP
NATS-Go客户 客户端。 安装 # Go client go get github.com/nats-io/nats.go/ # Server go get github.com/nats-io/nats-server 使用或转换为Go模块支持时: # Go client latest or explicit version go get github.com/nats-io/nats.go/@latest go get github.com/nats-io/nats.go/@v1.10.0 # For latest NATS Server, add /v2 at the end go get github.com/nats-io/nats-server/v2 # NATS Server v1 is installed otherwise # go get github.com/nats-io/nats-server 基本用法 import nats "github.com/nats-io/nats.go" // Connect to a server nc , _ := na

文件下载

资源详情

[{"title":"( 74 个子文件 198KB ) nats.go:NATS(云原生消息传递系统)的Golang客户端-源码","children":[{"title":"nats.go-master","children":[{"title":".travis.yml <span style='color:#111;'> 619B </span>","children":null,"spread":false},{"title":"CODE-OF-CONDUCT.md <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"timer_test.go <span style='color:#111;'> 985B </span>","children":null,"spread":false},{"title":"parser.go <span style='color:#111;'> 11.27KB </span>","children":null,"spread":false},{"title":"enc.go <span style='color:#111;'> 8.20KB </span>","children":null,"spread":false},{"title":"context.go <span style='color:#111;'> 5.39KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"ISSUE_TEMPLATE","children":[{"title":"feature_request.md <span style='color:#111;'> 223B </span>","children":null,"spread":false},{"title":"blank_issue.md <span style='color:#111;'> 72B </span>","children":null,"spread":false},{"title":"config.yml <span style='color:#111;'> 163B </span>","children":null,"spread":false},{"title":"defect.md <span style='color:#111;'> 505B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"gob_test.go <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":"sub_test.go <span style='color:#111;'> 36.80KB </span>","children":null,"spread":false},{"title":"json_test.go <span style='color:#111;'> 7.69KB </span>","children":null,"spread":false},{"title":"cluster_test.go <span style='color:#111;'> 21.29KB </span>","children":null,"spread":false},{"title":"netchan_test.go <span style='color:#111;'> 7.30KB </span>","children":null,"spread":false},{"title":"bench_test.go <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"helper_test.go <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false},{"title":"reconnect_test.go <span style='color:#111;'> 19.29KB </span>","children":null,"spread":false},{"title":"auth_test.go <span style='color:#111;'> 10.04KB </span>","children":null,"spread":false},{"title":"headers_test.go <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false},{"title":"basic_test.go <span style='color:#111;'> 25.90KB </span>","children":null,"spread":false},{"title":"configs","children":[{"title":"tls.conf <span style='color:#111;'> 248B </span>","children":null,"spread":false},{"title":"tls_noip_a.conf <span style='color:#111;'> 329B </span>","children":null,"spread":false},{"title":"tlsverify.conf <span style='color:#111;'> 298B </span>","children":null,"spread":false},{"title":"tls_noip_b.conf <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"certs","children":[{"title":"server.pem <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"client-cert.pem <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"key_noip.pem <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"client-key.pem <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"key.pem <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"server_noip.pem <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"ca.pem <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"drain_test.go <span style='color:#111;'> 11.61KB </span>","children":null,"spread":false},{"title":"context_test.go <span style='color:#111;'> 31.43KB </span>","children":null,"spread":false},{"title":"js_test.go <span style='color:#111;'> 37.24KB </span>","children":null,"spread":false},{"title":"conn_test.go <span style='color:#111;'> 64.29KB </span>","children":null,"spread":false},{"title":"protobuf_test.go <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false},{"title":"enc_test.go <span style='color:#111;'> 10.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"GOVERNANCE.md <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"example_test.go <span style='color:#111;'> 6.49KB </span>","children":null,"spread":false},{"title":"encoders","children":[{"title":"builtin","children":[{"title":"gob_enc.go <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"default_enc.go <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"json_enc.go <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"protobuf","children":[{"title":"testdata","children":[{"title":"pbtest.proto <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"pbtest.pb.go <span style='color:#111;'> 5.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"protobuf_enc.go <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"TODO.md <span style='color:#111;'> 946B </span>","children":null,"spread":false},{"title":"dependencies.md <span style='color:#111;'> 567B </span>","children":null,"spread":false},{"title":"netchan.go <span style='color:#111;'> 3.58KB </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"nats-sub","children":[{"title":"main.go <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":false},{"title":"nats-bench","children":[{"title":"main.go <span style='color:#111;'> 4.36KB </span>","children":null,"spread":false}],"spread":false},{"title":"nats-pub","children":[{"title":"main.go <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false}],"spread":false},{"title":"nats-qsub","children":[{"title":"main.go <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false}],"spread":false},{"title":"nats-req","children":[{"title":"main.go <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false}],"spread":false},{"title":"nats-rply","children":[{"title":"main.go <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false}],"spread":false},{"title":"nats-echo","children":[{"title":"main.go <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"bench","children":[{"title":"bench.go <span style='color:#111;'> 9.36KB </span>","children":null,"spread":false},{"title":"benchlib_test.go <span style='color:#111;'> 6.24KB </span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"js.go <span style='color:#111;'> 31.44KB </span>","children":null,"spread":false},{"title":"timer.go <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"go.sum <span style='color:#111;'> 6.40KB </span>","children":null,"spread":false},{"title":"nats_test.go <span style='color:#111;'> 71.18KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 13.01KB </span>","children":null,"spread":false},{"title":"norace_test.go <span style='color:#111;'> 4.01KB </span>","children":null,"spread":false},{"title":"util","children":[{"title":"tls_go17.go <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"tls.go <span style='color:#111;'> 794B </span>","children":null,"spread":false}],"spread":false},{"title":"scripts","children":[{"title":"cov.sh <span style='color:#111;'> 887B </span>","children":null,"spread":false}],"spread":false},{"title":"MAINTAINERS.md <span style='color:#111;'> 310B </span>","children":null,"spread":false},{"title":"jsm.go <span style='color:#111;'> 14.78KB </span>","children":null,"spread":false},{"title":"nats.go <span style='color:#111;'> 121.04KB </span>","children":null,"spread":false},{"title":"enc_test.go <span style='color:#111;'> 8.22KB </span>","children":null,"spread":false},{"title":"go.mod <span style='color:#111;'> 264B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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