Documentation ¶
Index ¶
- type Config
- type SnapshotBuilder
- type Store
- func (s *Store) Apply(log *raft.Log) interface{}
- func (s *Store) DB() *store.LocalDB
- func (s *Store) Restore(closer io.ReadCloser) error
- func (s *Store) Shutdown()
- func (s *Store) Snapshot() (raft.FSMSnapshot, error)
- func (s *Store) Update(fn func(store.Txn) error) error
- func (s *Store) UpdateLocal(fn func(txn *store.LTxn) error) error
- func (s *Store) View(fn func(store.Txn) error) error
- func (s *Store) ViewLocal(fn func(txn *store.LTxn) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DirPath string ConflictRetries int ConflictMaxInterval time.Duration BatchWorkers int BatchSize int }
func DefaultConfig ¶
type SnapshotBuilder ¶
type SnapshotBuilder struct{}
SnapshotBuilder is used for snapshot of Raft logs
func (SnapshotBuilder) Persist ¶
func (s SnapshotBuilder) Persist(sink raft.SnapshotSink) error
func (SnapshotBuilder) Release ¶
func (s SnapshotBuilder) Release()
Click to show internal directories.
Click to hide internal directories.