Versions in this module Expand all Collapse all v0 v0.2.23 May 14, 2021 Changes in this version + const ArchNameTSDelimiter + const ArchiveTypeGap + const ArchiveTypeOplog + const MaxDocumentSize + const OplogArchBasePath + var ArchRegexp = regexp.MustCompile(...) + var ErrorDescriptions = map[ErrorCode]string + func ArchInBackup(arch Archive, backup *Backup) bool + func BsonTimestampFromOplogTS(ots Timestamp) primitive.Timestamp + func LessTS(ots1, ots2 Timestamp) bool + func NewError(code ErrorCode, msg string) error + func PutOplogEntry(oplog *Oplog) + func TimestampInInterval(ts, begin, end Timestamp) bool + type Archive struct + End Timestamp + Ext string + Start Timestamp + Type string + func ArchFromFilename(path string) (Archive, error) + func NewArchive(start, end Timestamp, ext, atype string) (Archive, error) + func (a Archive) Extension() string + func (a Archive) Filename() string + func (a Archive) In(ts Timestamp) bool + type Backup struct + BackupName string + DataSize int64 + FinishLocalTime time.Time + MongoMeta MongoMeta + Permanent bool + StartLocalTime time.Time + UserData interface{} + func FirstOverlappingBackupForArch(arch Archive, backups []Backup) Backup + type BackupMeta struct + DataSize int64 + FinishTime time.Time + Mongo MongoMeta + Permanent bool + StartTime time.Time + User interface{} + type Error struct + func (e *Error) Error() string + type ErrorCode int + const CollectionRenamed + const SplitFound + const ValidationMessagePrefix + const VersionChanged + type IsMaster struct + IsMaster bool + LastWrite IsMasterLastWrite + type IsMasterLastWrite struct + MajorityOpTime OpTime + OpTime OpTime + type MongoMeta struct + After NodeMeta + Before NodeMeta + type NodeMeta struct + LastMajTS Timestamp + LastTS Timestamp + type OpTime struct + TS Timestamp + Term int64 + type Oplog struct + Data []byte + TS Timestamp + func GetOplogEntry() *Oplog + func OplogFromRaw(raw bson.Raw) (*Oplog, error) + type Timestamp struct + Inc uint32 + TS uint32 + func MaxTS(ots1, ots2 Timestamp) Timestamp + func TimestampFromBson(bts primitive.Timestamp) Timestamp + func TimestampFromStr(s string) (Timestamp, error) + func (ots Timestamp) String() string