上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页
摘要: go channel pipeline 套路 1. 起源 一直想写关于pipeline的,但是深知自己在编程方面还是个菜,所以就直接引用the go programming language里面的例子了。照着写不容易出错。此书是永远的经典。 2. pipeline1 package main imp 阅读全文
posted @ 2020-06-02 15:45 过去的我 阅读(257) 评论(0) 推荐(0)
摘要: 1. introduction 读完官网的例子就差不多了。 https://gorm.io/zh_CN/docs/index.html https://gorm.io/zh_CN/docs/conventions.html 2. 例子 package main import ( "github.co 阅读全文
posted @ 2020-06-02 14:34 过去的我 阅读(1664) 评论(0) 推荐(0)
摘要: 1 华为云cce pvc https://support.huaweicloud.com/usermanual-cce/cce_01_0044.html 1.15 apiVersion: v1 kind: PersistentVolumeClaim metadata: name: pvc-evs-a 阅读全文
posted @ 2020-05-28 10:31 过去的我 阅读(1093) 评论(0) 推荐(0)
摘要: 1.安装 安装的话分两种情况,虚机的话直接下载二进制文件运行就好了。 kubernetes容器下也很方便,起一个deployment,存储挂载到/var/lib/influxdb 就ok,配置文件可以通过configmap挂载进去。 kubernetes下面也可以用helm来安装,官方提供了一个比较 阅读全文
posted @ 2020-05-20 10:12 过去的我 阅读(623) 评论(0) 推荐(0)
摘要: 1.挺好用的socks5库 "github.com/armon/go socks5" 2.示例代码 很简洁,当然正式用不能这么用,默认是没有认证的,也就是说所有人都能连你服务器。。 加认证也很简单 下面详细看一下这个认证 Config结构体: config结构体里面要传入AuthMethods Au 阅读全文
posted @ 2020-05-16 07:58 过去的我 阅读(3973) 评论(0) 推荐(0)
摘要: [tgpl]go匿名函数 0. 定义 匿名函数顾名思义是没有名字的函数, Named functions can be declared only at the package level, but we can use a function literal to denote a function 阅读全文
posted @ 2020-04-30 14:27 过去的我 阅读(256) 评论(0) 推荐(0)
摘要: 比如频繁报如下错误, [2019-06-16T15:31:22,778][DEBUG][o.e.a.a.c.n.i.TransportNodesInfoAction] [node-xxx] failed to execute on node [kQrOKwMhSZy8O42Hgs6sdg] org. 阅读全文
posted @ 2020-04-04 17:19 过去的我 阅读(5875) 评论(0) 推荐(0)
摘要: elasticsearch cluster 集群 red 原因 分析 解决 阅读全文
posted @ 2020-04-04 17:02 过去的我 阅读(6515) 评论(1) 推荐(0)
摘要: 文章索引: elasticsearch && filebeat logstash配置解析nginx日志常用操作 delete old data in elasticsearch centos6下filebeat多开问题 es 报错cannot allocate because allocation 阅读全文
posted @ 2020-01-31 17:06 过去的我 阅读(272) 评论(0) 推荐(0)
摘要: linux下获取软件源码包 centos/redhat, debian/ubuntu centos下: debian/ubuntu下获取软件包源码 这样我们可以畅快的阅读源码了。 阅读全文
posted @ 2019-12-10 11:13 过去的我 阅读(546) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页