Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoreFSM ¶
type StoreFSM struct { }
* FSM需要实现三个方法
type StoreSnapshot ¶
type StoreSnapshot struct { }
func (*StoreSnapshot) Persist ¶
func (s *StoreSnapshot) Persist(sink raft.SnapshotSink) error
* 产生快照的时候调用,把当前所有的数据进行序列化备份
Click to show internal directories.
Click to hide internal directories.