上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 53 下一页
摘要: 原文链接:通过自定义资源扩展Kubernetes 阅读全文
posted @ 2019-09-20 11:37 salami_china 阅读(246) 评论(0) 推荐(1) 编辑
摘要: 链接地址:https://github.com/kubernetes/client-go demo1 demo2: 阅读全文
posted @ 2019-09-19 19:08 salami_china 阅读(1128) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://beego.me/quickstart 1.安装依赖 2.生成源码框架 这时候运行main二进制,web可以直接访问8080端口 简单示例 下面这个示例程序将会在浏览器中打印 “Hello world”,以此说明使用 beego 构建 Web 应用程序是多么的简单! 编译运 阅读全文
posted @ 2019-09-19 16:39 salami_china 阅读(848) 评论(0) 推荐(0) 编辑
摘要: #! /bin/python #coding=utf-8 import urllib2 import json import requests # token post_url = 'http://127.0.0.1:5000/v2.0/tokens' postData = { "auth": { 阅读全文
posted @ 2019-09-18 14:11 salami_china 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 接口: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) 编辑
摘要: 原文链接:Go interface操作示例 特点: 1. interface 是一种类型 interface 是一种具有一组方法的类型,这些方法定义了 interface 的行为。go 允许不带任何方法的 interface ,这种类型的 interface 叫 empty interface 2. 阅读全文
posted @ 2019-09-12 19:20 salami_china 阅读(808) 评论(0) 推荐(0) 编辑
摘要: 原文链接:golang orm 框架之 gorm gorm 用法介绍 库安装 数据库连接 连接比较简单,直接调用 gorm.Open 传入数据库地址即可 github.com/jinzhu/gorm/dialects/mysql 是 golang 的 mysql 驱动,实际上就是 github.co 阅读全文
posted @ 2019-09-12 17:06 salami_china 阅读(10529) 评论(2) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 53 下一页