用 gRPC 造了一个剪贴板。顺便说说用 gRPC 和 thrift 的几点感受

2018-04-10 23:27:00 +08:00
 herozem

https://github.com/jiajunhuang/pasty

公司的项目用了 thrift,所以自己整 gRPC 来玩玩。以后就可以愉快的到处复制粘贴了。

感受:

看看 pasty 的使用:

jiajun@idea ~: type p
p is /home/jiajun/golang/bin/p
jiajun@idea ~: echo "hello" > test.txt
jiajun@idea ~: p < test.txt
jiajun@idea ~: p -limit 1
file id 3 created at 2018-04-10 23:19:03 +0800 CST      ==================
hello
file id 3 created at 2018-04-10 23:19:03 +0800 CST over ==================
jiajun@idea ~: p -limit 1 -hint=false
hello
jiajun@idea ~: echo "hello world" | p
jiajun@idea ~: p -limit 1 -hint=false
hello world
jiajun@idea ~: p -limit 2 -hint=false
hello world
hello
jiajun@idea ~: p -limit 2
file id 4 created at 2018-04-10 23:19:35 +0800 CST      ==================
hello world
file id 4 created at 2018-04-10 23:19:35 +0800 CST over ==================
file id 3 created at 2018-04-10 23:19:03 +0800 CST      ==================
hello
file id 3 created at 2018-04-10 23:19:03 +0800 CST over ==================
2921 次点击
所在节点    分享创造
1 条回复
wwwker
2018-04-11 15:26:38 +08:00
最近项目里面也整合了 grpc,确实还不错

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/445785

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX