会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
shhnwangjian
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
33
下一页
2018年6月4日
golang rpc介绍
摘要: rpc包提供了通过网络或其他I/O连接对一个对象的导出方法的访问。服务端注册一个对象,使它作为一个服务被暴露,服务的名字是该对象的类型名。注册之后,对象的导出方法就可以被远程访问。服务端可以注册多个不同类型的对象(服务),但注册具有相同类型的多个对象是错误的。 服务端代码样例: 客户端代码
阅读全文
posted @ 2018-06-04 11:01 shhnwangjian
阅读(754)
评论(0)
推荐(0)
2018年5月15日
golang 使用os/exec配合context实现的超时机制
摘要: 在使用golang开发中,调用外部可执行程序通过exec包是我们常用的方式。如何控制超时请见如下样例: 进一步优化请见下文。 https://www.jianshu.com/p/e147d856074c
阅读全文
posted @ 2018-05-15 10:45 shhnwangjian
阅读(4298)
评论(0)
推荐(0)
2018年5月11日
go官方的http.request + context样例
摘要: go官方的http.request + context样例 https://github.com/DavadDi/go_study/blob/master/src/httpreq_context/main.go
阅读全文
posted @ 2018-05-11 15:29 shhnwangjian
阅读(828)
评论(0)
推荐(0)
2018年5月10日
golang 热升级
摘要: 需求场景 干净利落地升级正在运行的agent程序。适用于Devops团队。 目标: 不关闭现有连接:例如我们不希望关掉已部署的运行中的程序。但又想不受限制地随时升级服务。 新的进程要能够启动并替换掉旧的。 不关闭现有连接:例如我们不希望关掉已部署的运行中的程序。但又想不受限制地随时升级服务。 新的进
阅读全文
posted @ 2018-05-10 09:53 shhnwangjian
阅读(984)
评论(0)
推荐(0)
2018年5月9日
django中文学习资料
摘要: Django 2.0 中文官方文档地址: https://docs.djangoproject.com/zh-hans/2.0/ 《Django Girls》中文版地址: https://tutorial.djangogirls.org/zh/
阅读全文
posted @ 2018-05-09 14:45 shhnwangjian
阅读(291)
评论(0)
推荐(0)
2018年4月10日
Go strings.Builder
摘要: Go strings.Builder 字符串拼接操作优化 最开始的时候,可能会使用如下的操作: 与许多支持string类型的语言一样,golang中的string类型也是只读且不可变的。因此,这种拼接字符串的方式会导致大量的string创建、销毁和内存分配。如果你拼接的字符串比较多的话,这显然不是一
阅读全文
posted @ 2018-04-10 08:31 shhnwangjian
阅读(3417)
评论(0)
推荐(0)
2018年4月3日
httprouter使用pprof
摘要: httprouter使用pprof 参考:https://github.com/feixiao/httpprof https://xguox.me/go-profiling-optimizing.html/ 性能分析参考:https://github.com/caibirdme/hand-to-ha
阅读全文
posted @ 2018-04-03 10:27 shhnwangjian
阅读(906)
评论(0)
推荐(0)
2018年3月14日
大规模分布式系统的跟踪系统
摘要: 转载:http://bigbully.github.io/Dapper-translation/
阅读全文
posted @ 2018-03-14 13:33 shhnwangjian
阅读(277)
评论(0)
推荐(0)
2018年2月24日
Yearning 介绍(SQL审核平台)
摘要: 介绍 Yearning SQL 审计平台 基于Vue.js与Django的整套mysql-sql审核平台解决方案。提供基于Inception的SQL检测及执行。 GitHub:https://github.com/cookieY/Yearning 文档:https://cookiey.github.
阅读全文
posted @ 2018-02-24 14:25 shhnwangjian
阅读(20277)
评论(1)
推荐(0)
Inception介绍(MySQL自动化运维工具)
摘要: Inception介绍 GitHub:https://github.com/mysql-inception/inception 文档:https://mysql-inception.github.io/inception-document/install/ Inception是集审核、执行、回滚于一
阅读全文
posted @ 2018-02-24 09:43 shhnwangjian
阅读(5656)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
33
下一页
公告