package
1.0.1-rc1
Repository: https://github.com/2se/dolphin.git
Documentation: pkg.go.dev

# Functions

Init 初始化集群,返回本节点在集群中的名称 如果是单实例模式,节点名称为local 如果是集群模式,节点名称为配置文件中定义的本节点的名称 如果未传入配置文件,返回错误,节点名称为空字符串.
No description provided by the author
No description provided by the author

# Constants

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

# Variables

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

# Structs

集群有两个角色一个是主节点角色,一个是从节点角色。在同一时间,集群的节点只承担一种角色.
No description provided by the author
PingRequest 是主节点ping跟随节点时发送的数据.
maybe protobuf 这里需要定义交互需要的协议.
maybe protobuf.
ClusterVoteRequest is a request from a leader candidate to a node to vote for the candidate.
ClusterVoteResponse is a vote from a node.

# Type aliases

No description provided by the author