snapshots

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package snapshots provides an interface for managing raft snapshots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshotter

type Snapshotter interface {
	// Snapshot returns a new snapshot.
	Snapshot(ctx context.Context) (raft.FSMSnapshot, error)
	// Restore restores a snapshot.
	Restore(ctx context.Context, r io.ReadCloser) error
}

Snapshotter is an interface for taking and restoring snapshots.

func New

New returns a new Snapshotter.

Jump to

Keyboard shortcuts

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