Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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
        }
})

About

Go version of Ost

Resources

Releases

No releases published

Packages

No packages published

Languages