Skip to content

amibiz/mgotail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mgotail

mgotail is a simple library to tail mongodb oplogs in Go.

Documentation

GoDoc.

Tests

The tests assume an env variable, MONGO_URL, that defines a mongo connection string. This mongo instance must be running a replicaset db named "TailTest". You can do this by running mongod from the command line:

mongod --noprealloc --nojournal --smallfiles --oplogSize 10 --replSet TailTest

Or via docker

docker run -d -p 27017 rgarcia/mongodb mongod --noprealloc --nojournal --smallfiles --oplogSize 10 --replSet TailTest

Once mongodb is running, you can run the tests:

MONGO_URL=... go test

About

Tail mongo oplogs in go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published