Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelled = errors.New("backup canceled")
ErrCancelled means backup was canceled
Functions ¶
func Compress ¶ added in v1.1.0
func Compress(w io.Writer, compression pbm.CompressionType) io.WriteCloser
Compress makes a compressed writer from the given one
Types ¶
type ErrInsuffRange ¶ added in v1.3.2
type ErrInsuffRange struct {
// contains filtered or unexported fields
}
func (ErrInsuffRange) Error ¶ added in v1.3.2
func (e ErrInsuffRange) Error() string
type Oplog ¶ added in v1.1.0
type Oplog struct {
// contains filtered or unexported fields
}
Oplog is used for reading the Mongodb oplog
func (*Oplog) LastWrite ¶ added in v1.1.0
LastWrite returns a timestamp of the last write operation readable by majority reads
func (*Oplog) SetTailingSpan ¶ added in v1.2.0
SetTailingSpan sets oplog tailing window
func (*Oplog) WriteTo ¶ added in v1.2.0
WriteTo writes an oplog slice between start and end timestamps into the given io.Writer
To be sure we have read ALL records up to the specified cluster time. Specifically, to be sure that no operations from the past gonna came after we finished the slicing, we have to tail until some record with ts > endTS. And it might be a noop.
Click to show internal directories.
Click to hide internal directories.