package snap
import "github.com/coreos/etcd/snap"
Index ¶
Variables ¶
var ( ErrNoSnapshot = errors.New("snap: no available snapshot") ErrCRCMismatch = errors.New("snap: crc mismatch") )
Types ¶
type Snapshotter ¶
type Snapshotter struct {
// contains filtered or unexported fields
}
func New ¶
func New(dir string) *Snapshotter
func (*Snapshotter) Load ¶
func (s *Snapshotter) Load() (*raftpb.Snapshot, error)
func (*Snapshotter) SaveSnap ¶
func (s *Snapshotter) SaveSnap(snapshot raftpb.Snapshot) error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
snap/snappb | Package snappb is a generated protocol buffer package. |
- Version
- v0.5.0-alpha.4
- Published
- Nov 26, 2014
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 25 minutes ago –
Tools for package owners.