go开源项目influxdb-relay源码分析(一)
2018-09-21 14:29 | 评论:0 次 | 浏览: 455
influxdb-relay项目地址: https://github.com/influxdata/influxdb-relay,主要作为负载均衡节点,写入多个influxdb节点,起到高可用效果。 不多说,开搞~ 1、main.go 2、配置文件 relay.toml 总结: 1、加载配置文件 r ...
mysql 审核引擎 goInception 的基本使用
2019-06-15 06:45 | 评论:0 次 | 浏览: 784
官网地址 github.com 安装 git clone https://github.com/hanchuanchuan/goInception.git cd goInception 修改配置 开启备份 vim config/config.toml [inc] backup_host="127.0 ...
golang 使用 viper 读取自定义配置文件
2020-03-09 16:19 | 评论:0 次 | 浏览: 82
viper 支持 yaml、json、 toml、hcl 等格式,读取非常的方便。 viper 官网有案例: go get github.com/spf13/viper
Rust Web框架Tide使用
2020-07-09 16:33 | 评论:0 次 | 浏览: 104
目录简介快速开始发送和接收数据json数据静态文件重定向简介rust官方推出的基于async-std的异步web框架,目前最新版本为v0.11.0,还不太成熟。快速开始创建项目cargo new tide-demo在cargo.toml中添加依赖[dependencies]tide = "0.11.0"async-std = { version = "1.6.0", features = ["attributes"]修改main.js#[async_std::main]