Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoReplica ¶
func (*MongoReplica) PostConfig ¶
func (s *MongoReplica) PostConfig() error
func (*MongoReplica) PreConfig ¶
func (s *MongoReplica) PreConfig() error
func (*MongoReplica) Restart ¶
func (s *MongoReplica) Restart() (bool, error)
replicaSet下的重启会先删除所有SENCONDARY节点, 等待其重启完成后对PRIMARY进行StepDown, 再将原PRIMARY节点进行重启 bool为restart结束标识
func (*MongoReplica) Sync ¶
func (s *MongoReplica) Sync() error
Click to show internal directories.
Click to hide internal directories.