package
0.2.4
Repository: https://github.com/treeforest/gossip.git
Documentation: pkg.go.dev

# README

Store

这是一个分布式存储的示例,在一个节点中写入数据后将广播到网络中的其它节点

Usage

在这个示例中,将启动6个节点,步骤如下:

  • 启动节点1
go run main.go -port 6010 -endpoint localhost:6010
  • 启动节点2
go run main.go -port 6020 -endpoint localhost:6020 -member localhost:6010
  • 启动节点3
go run main.go -port 6030 -endpoint localhost:6030 -member localhost:6010
  • 启动节点4
go run main.go -port 6040 -endpoint localhost:6040 -member localhost:6010
  • 启动节点5
go run main.go -port 6050 -endpoint localhost:6050 -member localhost:6010
  • 启动节点6
go run main.go -port 6060 -endpoint localhost:6060 -member localhost:6010

# Constants

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author