Go version of Ost
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps
Makefile
README.md
gost.go
gost_test.go

README.md

Gost

Gost is a Go port of Ost for fun and profit. If you want something really minimal you should take a look at Ostgo

Connect to a Redis server

gost := gost.Connect(":6379")

Push ids to a queue

gost.Push("my_jobs", "id_to_be_procesed")

View the items in that given queue

gost.Items("my_jobs")

Stop all accesed queues

gost.Stop()

Consume the elements in the queue

gost.Each("my_jobs", func(id string) bool {
        if(does_something_with_the_id(id)) {
                // Everything is ok
                return true
        } else {
                // If the fn returns false the items is kept in the backup key
                return false
        }
})