Documentation ¶
Index ¶
- type Apply
- type Collation
- type Common
- type OplogTail
- func (ot *OplogTail) Cancel()
- func (ot *OplogTail) Close() error
- func (ot *OplogTail) CloseAt(ts bson.MongoTimestamp) error
- func (ot *OplogTail) Count() uint64
- func (ot *OplogTail) LastOplogTimestamp() bson.MongoTimestamp
- func (ot *OplogTail) Read(buf []byte) (int, error)
- func (ot *OplogTail) Size() uint64
- func (ot *OplogTail) WaitUntilFirstDoc() error
- func (ot *OplogTail) WaitUntilFirstDocWithTimeout(timeout time.Duration) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apply ¶ added in v0.5.0
type Apply struct {
// contains filtered or unexported fields
}
func NewOplogApply ¶
func NewOplogApplyUntil ¶
func NewOplogApplyUntil(session *mgo.Session, r bsonfile.BSONReader, stopAtTs bson.MongoTimestamp, ) (*Apply, error)
type Collation ¶ added in v0.5.0
type Collation struct { Locale string `bson:"locale"` Alternate string `bson:"alternate"` CaseFirst string `bson:"caseFirst"` MaxVariable string `bson:"maxVariable"` Version string `bson:"version"` Strength int `bson:"strength"` CaseLevel bool `bson:"caseLevel"` NumericOrdering bool `bson:"numericOrdering"` Normalization bool `bson:"normalization"` Backwards bool `bson:"backwards"` }
type OplogTail ¶
type OplogTail struct {
// contains filtered or unexported fields
}
func (*OplogTail) Cancel ¶
func (ot *OplogTail) Cancel()
Cancel stopts the tailer immediately without waiting the tailer to reach the document having timestamp = IsMasterDoc().LastWrite.OpTime.Ts
func (*OplogTail) LastOplogTimestamp ¶
func (ot *OplogTail) LastOplogTimestamp() bson.MongoTimestamp
func (*OplogTail) Read ¶
Implement the Reader interface to be able to pipe it into an S3 stream or through an encrypter
func (*OplogTail) WaitUntilFirstDoc ¶
Click to show internal directories.
Click to hide internal directories.