上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: 1. nginx ingress 在aks 上安装 helm安装非常简单。 1.1 helm安装 # Create a namespace for your ingress resources kubectl create namespace ingress-basic # Add the offi 阅读全文
posted @ 2020-07-10 21:08 过去的我 阅读(807) 评论(0) 推荐(0)
摘要: Markdown For Typora Overview Markdown is created by Daring Fireball; the original guideline is here. Its syntax, however, varies between different par 阅读全文
posted @ 2020-06-27 16:58 过去的我 阅读(314) 评论(0) 推荐(0)
摘要: 0. Ioc https://docs.spring.io/spring-framework/docs/current/spring-framework-reference/core.html#beans-introduction 主要是实现一个控制反转,耦合性大大降低。 1. 建maven项目 建 阅读全文
posted @ 2020-06-15 14:55 过去的我 阅读(176) 评论(0) 推荐(0)
摘要: 1. 倒计时countdown 例子还是来自go programing language。基本上是对time.Tick 加select的简单应用。 2.countdown 1 package main import ( "fmt" "time" ) func main() { fmt.Println 阅读全文
posted @ 2020-06-08 10:32 过去的我 阅读(264) 评论(0) 推荐(0)
摘要: go channel pipeline 套路 1. 起源 一直想写关于pipeline的,但是深知自己在编程方面还是个菜,所以就直接引用the go programming language里面的例子了。照着写不容易出错。此书是永远的经典。 2. pipeline1 package main imp 阅读全文
posted @ 2020-06-02 15:45 过去的我 阅读(239) 评论(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 过去的我 阅读(1637) 评论(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 过去的我 阅读(1040) 评论(0) 推荐(0)
摘要: 1.安装 安装的话分两种情况,虚机的话直接下载二进制文件运行就好了。 kubernetes容器下也很方便,起一个deployment,存储挂载到/var/lib/influxdb 就ok,配置文件可以通过configmap挂载进去。 kubernetes下面也可以用helm来安装,官方提供了一个比较 阅读全文
posted @ 2020-05-20 10:12 过去的我 阅读(594) 评论(0) 推荐(0)
摘要: 1.挺好用的socks5库 "github.com/armon/go socks5" 2.示例代码 很简洁,当然正式用不能这么用,默认是没有认证的,也就是说所有人都能连你服务器。。 加认证也很简单 下面详细看一下这个认证 Config结构体: config结构体里面要传入AuthMethods Au 阅读全文
posted @ 2020-05-16 07:58 过去的我 阅读(3885) 评论(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 过去的我 阅读(241) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页