Documentation ¶
Index ¶
- func NewDiskKV(clusterID uint64, nodeID uint64) sm.IOnDiskStateMachine
- type DiskKV
- func (d *DiskKV) Close() error
- func (d *DiskKV) Lookup(key interface{}) (interface{}, error)
- func (d *DiskKV) Open(stopc <-chan struct{}) (uint64, error)
- func (d *DiskKV) PrepareSnapshot() (interface{}, error)
- func (d *DiskKV) RecoverFromSnapshot(reader io.Reader, i <-chan struct{}) error
- func (d *DiskKV) SaveSnapshot(ctx interface{}, w io.Writer, i2 <-chan struct{}) error
- func (d *DiskKV) Sync() error
- func (d *DiskKV) Update(entries []sm.Entry) ([]sm.Entry, error)
- type KVData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiskKV ¶
type DiskKV struct {
// contains filtered or unexported fields
}
func (*DiskKV) PrepareSnapshot ¶
PrepareSnapshot 准备快照
func (*DiskKV) RecoverFromSnapshot ¶
func (*DiskKV) SaveSnapshot ¶
Click to show internal directories.
Click to hide internal directories.