上一页 1 2 3 4 5 6 7 8 ··· 20 下一页

2023年11月4日

redis + golang

摘要: https://www.cnblogs.com/jiujuan/p/17215125.html 阅读全文

posted @ 2023-11-04 17:42 木林coder 阅读(4) 评论(0) 推荐(0) 编辑

2023年9月20日

mongo + golang 连接复用

摘要: https://www.coder.work/article/6453048 阅读全文

posted @ 2023-09-20 15:18 木林coder 阅读(28) 评论(0) 推荐(0) 编辑

2023年8月29日

TP6 redis psubscribe订阅 实现缓存过期后执行业务逻辑

摘要: https://blog.csdn.net/W915120623/article/details/122492272 阅读全文

posted @ 2023-08-29 09:07 木林coder 阅读(11) 评论(0) 推荐(0) 编辑

2023年7月16日

kafka-mongo.go

摘要: package mongo import ( "context" "fmt" "log" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo 阅读全文

posted @ 2023-07-16 22:59 木林coder 阅读(13) 评论(0) 推荐(0) 编辑

kafka-es.go

摘要: package es import ( "context" "encoding/json" "fmt" "kafka/mongo" "log" "os" "github.com/olivere/elastic" ) var client *elastic.Client var host = "htt 阅读全文

posted @ 2023-07-16 22:58 木林coder 阅读(5) 评论(0) 推荐(0) 编辑

2023年7月13日

kafka-main.go

摘要: package main import ( "bufio" "kafka/consumer" "kafka/es" "kafka/producer" "os" "strings" ) var inputReader *bufio.Reader func init() { inputReader = 阅读全文

posted @ 2023-07-13 19:24 木林coder 阅读(5) 评论(0) 推荐(0) 编辑

kafka-producer.go

摘要: package producer import ( "fmt" "github.com/Shopify/sarama" ) type CRead func() string func Run(cRead CRead) { config := sarama.NewConfig() config.Pro 阅读全文

posted @ 2023-07-13 19:23 木林coder 阅读(6) 评论(0) 推荐(0) 编辑

kafka-consumer.go

摘要: package consumer import ( "fmt" "kafka/mongo" "strconv" "strings" "sync" "github.com/Shopify/sarama" ) type CRead func() string func Run() { var wg sy 阅读全文

posted @ 2023-07-13 19:22 木林coder 阅读(22) 评论(0) 推荐(0) 编辑

2023年7月1日

启动的docker添加目录映射

摘要: https://blog.51cto.com/u_13250/6402661 阅读全文

posted @ 2023-07-01 00:01 木林coder 阅读(17) 评论(0) 推荐(0) 编辑

2023年6月11日

nginx-ssl

摘要: https://www.cnblogs.com/shi2310/p/16424447.html docker run --name nginx -p 443:443 -p 80:80 -v /usr/etc/docker/nginx/www:/usr/share/nginx/html -v /usr 阅读全文

posted @ 2023-06-11 14:25 木林coder 阅读(463) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
点击右上角即可分享
微信分享提示