// ReplsetRole returns replset role in sharded clister
ReplsetRole returns replset role in sharded clister
// ReplsetRole returns replset role in sharded clister
func (im *IsMaster) ReplsetRole() ReplRole {
	switch {
	case im.ConfigSvr == 2:
		return ReplRoleConfigSrv
	case im.ConfigServerState != nil:
		return ReplRoleShard
	default:
		return ReplRoleUnknown
	}
}
func ( im * IsMaster ) ReplsetRole ( ) ReplRole { switch { case im . ConfigSvr == 2 : return ReplRoleConfigSrv case im . ConfigServerState != nil : return ReplRoleShard default : return ReplRoleUnknown } }
ReplsetRole returns replset role in sharded clister
ReplsetRole returns replset role in sharded clister