Imports github.com/juju/errors github.com/juju/loggo github.com/juju/txn gopkg.in/mgo.v2 gopkg.in/mgo.v2/bson gopkg.in/mgo.v2/txn Standard library imports bufio crypto/tls errors flag fmt net os regexp sort strings sync time