Skip to content

elcuervo/gost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages