snapshot

package
v0.6.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = "snapshot.db"
View Source
const HashHeaderKey = "marmot-snapshot-tag"
View Source
const TempDirPattern = "marmot-snapshot-*"

Variables

View Source
var ErrInvalidSnapshot = errors.New("invalid snapshot")
View Source
var ErrPendingSnapshot = errors.New("system busy capturing snapshot")

Functions

This section is empty.

Types

type NatsDBSnapshot

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

func NewNatsDBSnapshot

func NewNatsDBSnapshot(d *db.SqliteStreamDB) *NatsDBSnapshot

func (*NatsDBSnapshot) RestoreSnapshot

func (n *NatsDBSnapshot) RestoreSnapshot(conn *nats.Conn) error

func (*NatsDBSnapshot) SaveSnapshot

func (n *NatsDBSnapshot) SaveSnapshot(conn *nats.Conn) error

type NatsSnapshot

type NatsSnapshot interface {
	SaveSnapshot(nats *nats.Conn) error
	RestoreSnapshot(nats *nats.Conn) error
}

Jump to

Keyboard shortcuts

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