上一页 1 ··· 4 5 6 7 8
摘要: #字节顺 ###网络字节顺NBO(Network Byte Order) 大端模式(big-endian),按从高到低的顺序存储,在网络上使用统一的网络字节顺序,可以避免兼容性问题; ###主机字节顺序(HBO,Host Byte Order) 小端模式,不同的机器HBO不相同,与CPU设计有关,数 阅读全文
posted @ 2021-09-14 21:47 wangzhilei 阅读(56) 评论(0) 推荐(0) 编辑
摘要: https://github.com/grpc-ecosystem/grpc-gateway https://gitee.com/go-ecosystem/grpc-gateway.git https://gitee.com/tkxiong/grpc-go.git ##install git clo 阅读全文
posted @ 2021-09-14 17:26 wangzhilei 阅读(417) 评论(0) 推荐(0) 编辑
摘要: ##镜像 docker pull mongo:4 阅读全文
posted @ 2021-09-14 10:46 wangzhilei 阅读(15) 评论(0) 推荐(0) 编辑
摘要: go get github.com/Shopify/sarama #消息队列通讯模式 1.点对点 2.发布订阅 #Broker 部署了kafka实例的服务器节点。 每个服务器上有一个或多个kafka的实例,broker对应一台服务器。每个kafka集群内的broker都有一个不重复的编号 #Topi 阅读全文
posted @ 2021-09-10 22:04 wangzhilei 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 安装 模式 一元模式 stream模式 metadata 拦截器 token_auth 验证器 异常处理 超时机制 #安装 方法1: go get -u -v google.golang.org/grpc 方法2: git clone https://github.com/grpc/grpc-go. 阅读全文
posted @ 2021-09-10 21:46 wangzhilei 阅读(90) 评论(0) 推荐(0) 编辑
摘要: protobuf编译器 二进制安装 安装protobuf-go 数据类型与GO对比 消息体 数组 枚举 联合体 map timestamp metadata 编译protobuf文件 protoc命令 添加rpc服务 序列化 反序列化 #protobuf 编译器 ##二进制安装 1.下载二进制包 w 阅读全文
posted @ 2021-09-10 21:38 wangzhilei 阅读(449) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8