raftwal

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wal

type Wal struct {
	// contains filtered or unexported fields
}

func Init

func Init(walStore *store.Store, id uint64) *Wal

func (*Wal) Entries

func (w *Wal) Entries(gid uint32, fromTerm, fromIndex uint64) (es []raftpb.Entry, rerr error)

func (*Wal) HardState

func (w *Wal) HardState(gid uint32) (hd raftpb.HardState, rerr error)

func (*Wal) Snapshot

func (w *Wal) Snapshot(gid uint32) (snap raftpb.Snapshot, rerr error)

func (*Wal) Store

func (w *Wal) Store(gid uint32, h raftpb.HardState, es []raftpb.Entry) error

Store stores the snapshot, hardstate and entries for a given RAFT group.

func (*Wal) StoreSnapshot added in v0.7.1

func (w *Wal) StoreSnapshot(gid uint32, s raftpb.Snapshot) error

Jump to

Keyboard shortcuts

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