Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(location string, confState etcdraftpb.ConfState) *storage
Types ¶
type Storage ¶
type Storage interface { raft.Storage Append([]etcdraftpb.Entry) error HardState() etcdraftpb.HardState // save snapshot to disk and compact entries up to snapshot index SaveSnapshot(index uint64, data []byte, confState etcdraftpb.ConfState) error SetHardState(etcdraftpb.HardState) error }
Click to show internal directories.
Click to hide internal directories.