Documentation
¶
Overview ¶
Package wals implements the management of WAL files list
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatherReadyWALFilesConfig ¶
GatherReadyWALFilesConfig is the configuration for GatherReadyWALFiles
type WALList ¶
type WALList struct {
// points to a wal, example of content: "pg_wal/000000010000000000000001"
Ready []string
// points to a wal, example of content: "pg_wal/000000010000000000000001"
Done []string
HasMoreResults bool
// contains filtered or unexported fields
}
WALList is a structure that contains the list of WAL files that are ready to be archived
func GatherReadyWALFiles ¶
func GatherReadyWALFiles( ctx context.Context, config GatherReadyWALFilesConfig, ) *WALList
GatherReadyWALFiles reads from the archived status the list of WAL files that can be archived.
func (*WALList) MarkAsDone ¶
MarkAsDone moves a WAL file from the list of ready WAL files to the list of done WAL files
func (*WALList) ReadyItemsToSlice ¶
ReadyItemsToSlice returns the list of ready WAL files as a slice
func (*WALList) RemoveReadyItem ¶
RemoveReadyItem removes a WAL file from the list of ready WAL files
Click to show internal directories.
Click to hide internal directories.