【代码】基于etcd的分布式队列(golang版)
python client 封装了lock,go client 锁需要上层实现: 基于go+etcd实现分布式锁 clientv3文档example: 文档example client.go package etcdq import ( context v3 go.etcd.io/etcd/clientv3 time ) type Client interface { ReadItem(string) KV ReadItems(string) KVs WriteItem(string, string) DeleteItem(string) Atomic(write
用户评论