snapshot

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidStorageType = errors.New("invalid snapshot storage type")
View Source
var ErrNoSnapshotFound = errors.New("no snapshot found")
View Source
var ErrPendingSnapshot = errors.New("system busy capturing snapshot")
View Source
var ErrRequiredParameterMissing = errors.New("required parameter missing")

Functions

This section is empty.

Types

type NatsDBSnapshot

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

func NewNatsDBSnapshot

func NewNatsDBSnapshot(d *db.SqliteStreamDB, snapshotStorage Storage) *NatsDBSnapshot

func (*NatsDBSnapshot) RestoreSnapshot

func (n *NatsDBSnapshot) RestoreSnapshot() error

func (*NatsDBSnapshot) SaveSnapshot

func (n *NatsDBSnapshot) SaveSnapshot() error

type NatsSnapshot

type NatsSnapshot interface {
	SaveSnapshot() error
	RestoreSnapshot() error
}

type Storage added in v0.7.1

type Storage interface {
	Upload(name, filePath string) error
	Download(filePath, name string) error
}

func NewSnapshotStorage added in v0.7.1

func NewSnapshotStorage() (Storage, error)

Jump to

Keyboard shortcuts

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