package
0.0.0-20240318155159-e89a0ad6e1cb
Repository: https://github.com/apecloud/dataprotection-wal-g.git
Documentation: pkg.go.dev

# Functions

ArchFromFilename builds Arch from given path.
ArchInBackup checks if archive and given backup overlaps each over.
BsonTimestampFromOplogTS builds BSON primitive from Timestamp.
FirstOverlappingBackupForArch checks if archive overlaps any backup from given list.
GetOplogEntry fetches empty Oplog struct from pool.
LessTS returns if first timestamp less than second.
MaxTS returns maximum of two timestamps.
NewArchive builds Archive struct with given arguments.
NewError builds Error with error code and message.
OplogFromRaw tries to decode bytes to Oplog model.
PutOplogEntry zeroes fields of Oplog struct and it to pool.
TimestampFromBson builds Timestamp from BSON primitive.
TimestampFromStr builds Timestamp from string.
TimestampInInterval checks if timestamp is in given interval.

# Constants

Archive path constants.
Archive path constants.
Archive path constants.
Error codes generation.
No description provided by the author
Archive path constants.
Error codes generation.
Error codes generation.
Error codes generation.

# Variables

No description provided by the author
ErrorDescriptions maps error codes to messages.

# Structs

Archive defines oplog archive representation.
Backup represents backup sentinel data todo: use `internal.GenericMetadata` as base.
BackupMeta includes mongodb and storage metadata.
Error ...
IsMaster ...
IsMasterLastWrite ...
MongoMeta includes NodeMeta Before and after backup.
NodeMeta represents MongoDB node metadata.
Oplog represents oplog raw and parsed metadata.
Optime ...
Timestamp represents oplog record uniq id.

# Type aliases

ErrorCode ...