crdt:CRDT的Golang实现

时间:2021-02-05 06:01:59
【文件属性】:
文件名称:crdt:CRDT的Golang实现
文件大小:14KB
文件格式:ZIP
更新时间:2021-02-05 06:01:59
golang data-structures crdt DatastructuresGo 彩铃 这是中的实现。 当前已实现以下基于状态的计数器和集合。 专柜 G柜台 仅增长计数器(G-Counter)只能在一个方向上增加。 增量操作将当前副本的值增加1。合并操作通过获取每个副本的最大值来合并来自不同副本的值。 gcounter := crdt . NewGCounter () // We can increase the counter monotonically by 1. gcounter . Inc () // Twice. gcounter . Inc () // Or we can pass in an arbitrary delta to apply as an
【文件预览】:
crdt-master
----set.go(83B)
----g_set_test.go(3KB)
----lww_e_set_test.go(9KB)
----g_set.go(1KB)
----.travis.yml(290B)
----LICENSE(1KB)
----lww_e_set.go(3KB)
----README.md(4KB)
----or_set.go(1KB)
----g_counter_test.go(847B)
----twophase_set.go(1KB)
----pn_counter.go(2KB)
----twophase_set_test.go(2KB)
----.gitignore(272B)
----or_set_test.go(3KB)
----g_counter.go(2KB)
----pn_counter_test.go(1KB)

网友评论