Versions in this module Expand all Collapse all v1 v1.0.15 Jun 13, 2024 v1.0.14 May 22, 2024 Changes in this version + const LOCAL_HOST + const Logs_File + const RAFT_DATA_DIR + const Stable_File + type Node struct + Addr string + Id string + type RaftX struct + func NewRaftX(node *Node, raftBootstrap bool, fsm raft.FSM) (*RaftX, error) + func NewRaftXWithConfig(c *raft.Config, node *Node, raftBootstrap bool, fsm raft.FSM) (*RaftX, error) + func (r *RaftX) AddPeer(node *Node) error + func (r *RaftX) AddPeers(nodes []*Node) error + func (r *RaftX) EnableRaftAdmin() + func (r *RaftX) EnableRefelctionService() + func (r *RaftX) GetAddress() string + func (r *RaftX) SetDataDir(dir string) error + func (r *RaftX) SetHealthService(name string) error + func (r *RaftX) Start(s *grpc.Server, fn func(*raft.Raft)) error