Documentation ¶
Index ¶
Constants ¶
View Source
const ( OplogDatabaseName = "local" OplogCollectionName = "oplog.rs" OplogOpUpdate = "u" OplogOpDelete = "d" OplogOpInsert = "i" OplogOpCommand = "c" )
Variables ¶
View Source
var Checkpoint = &checkpoint{checkpointMap: make(map[string]*primitive.Timestamp), mutex: &sync.Mutex{}}
View Source
var Config = &config{}
View Source
var DocManager = &docManager{mutex: &sync.Mutex{}, managers: make(map[string]managers.IDocManager)}
View Source
var SignalMonitor = &signalMonitor{}
Functions ¶
func InitConfig ¶
func NewDocManager ¶
func NewDocManager(shardId string) *docManager
func ParseNamespace ¶
Types ¶
type MongoSync ¶
type MongoSync struct {
// contains filtered or unexported fields
}
func NewMongoSync ¶
func NewMongoSync() *MongoSync
Source Files ¶
Click to show internal directories.
Click to hide internal directories.