lraft

package module
v0.0.0-...-0e96e3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

README

LRaft

Go Report Card

完全参考JRaft学习写的golang版本的Raft协议实现

Function

  • 日志管理LogManager
  • Raft状态机
  • Replicator逻辑
  • Snapshot逻
  • Leader选举逻辑
  • 集群成员节点变更
  • ReadIndex实现

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRaftNode

func NewRaftNode(opt *Option) core.Node

NewRaftNode 创建一个 Raft 节点

Types

type Option

type Option struct {
	GroupID  string
	ServerID entity.PeerId
	NodeOpt  *core.NodeOptions
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL