generator

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 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 SnapshotGenerator

type SnapshotGenerator interface {
	CreateSnapshot(ctx context.Context, snapshot *snapshot.Snapshot) error
	Close() error
}

type SnapshotRecorder

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

SnapshotRecorder is a decorator around a snapshot generator that will record the snapshot request status.

func NewSnapshotRecorder

func NewSnapshotRecorder(store snapshotstore.Store, generator SnapshotGenerator, repeatableSnapshots bool) *SnapshotRecorder

NewSnapshotRecorder will return the generator on input wrapped with an activity recorder that will keep track of the status of the snapshot requests.

func (*SnapshotRecorder) Close

func (s *SnapshotRecorder) Close() error

func (*SnapshotRecorder) CreateSnapshot

func (s *SnapshotRecorder) CreateSnapshot(ctx context.Context, ss *snapshot.Snapshot) error

Directories

Path Synopsis
postgres

Jump to

Keyboard shortcuts

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