Versions in this module Expand all Collapse all v1 v1.4.0 Mar 27, 2020 v1.3.0 Dec 16, 2019 v1.2.0 Sep 20, 2019 v1.1.0 Jul 7, 2019 v1.0.0 Jun 26, 2019 Changes in this version + const MaxMembers + const MaxVotingMembers + const MinVotingMembers + func Dial(addrs []string, replset string, usersSecret *corev1.Secret, useTLS bool) (*mgo.Session, error) + func WriteConfig(session *mgo.Session, cfg RSConfig) error + type Member struct + ArbiterOnly bool + BuildIndexes bool + Hidden bool + Host string + ID int + Priority int + SlaveDelay int64 + Tags ReplsetTags + Votes int + func (m Member) String() string + type OKResponse struct + Errmsg string + OK int + type RSConfig struct + Configsvr bool + ID string + Members RSMembers + ProtocolVersion int + Settings Settings + Version int + WriteConcernMajorityJournalDefault bool + func ReadConfig(session *mgo.Session) (RSConfig, error) + type RSMembers []Member + func (m *RSMembers) AddNew(from RSMembers) (changes bool) + func (m *RSMembers) RemoveOld(compareWith RSMembers) (changes bool) + func (m *RSMembers) SetVotes() + type ReplSetGetConfig struct + Config *RSConfig + Errmsg string + type ReplsetTags map[string]string + type Settings struct + CatchUpTimeoutMillis int64 + ChainingAllowed bool + ElectionTimeoutMillis int64 + GetLastErrorDefaults WriteConcern + GetLastErrorModes map[string]ReplsetTags + HeartbeatIntervalMillis int64 + HeartbeatTimeoutSecs int + ReplicaSetID bson.ObjectId + type WriteConcern struct + Journal bool + WriteConcern interface{} + WriteTimeout int