摘要: 接口:https://gowalker.org/github.com/apache/thrift/lib/go/thrift 参考文件:https://cong.im/2018/05/14/other/rpc/thrift/ go 环境安装 编译环境安装 thrift 编译安装(只编译go环境) 阅读全文
posted @ 2019-09-16 17:56 salami_china 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 原文链接:Kubernetes编写自定义controller 来自kubernetes官方github的一张图: 如图所示,图中的组件分为client-go和custom controller两部分: client-go部分 Reflector: 监视特定资源的k8s api, 把新监测的对象放入D 阅读全文
posted @ 2019-09-16 14:56 salami_china 阅读(1078) 评论(0) 推荐(0) 编辑
摘要: 原文链接:Go语言第十一课 并发(三)Channel缓存与阻塞 Channel的缓存 前面介绍过channel的创建方法: channel_test := make(chan string) 其实它完整的写法应该是: channel_test := make(chan string,0) 这种容量为 阅读全文
posted @ 2019-09-16 14:25 salami_china 阅读(2575) 评论(0) 推荐(0) 编辑
摘要: 原文链接:Writing worker queues, in Go 1.work.go 2.collector.go 3.worker.go 4.dispatcher.go 5.main.go 6.编译 7.运行 8.测试 9.效果 阅读全文
posted @ 2019-09-16 13:50 salami_china 阅读(1024) 评论(0) 推荐(0) 编辑