Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 391 Bytes

Readme.md

File metadata and controls

19 lines (11 loc) · 391 Bytes

Beanstalk

Go client for beanstalkd.

Install

$ go get github.com/beanstalkd/go-beanstalk

Use

Produce jobs:

c, err := beanstalk.Dial("tcp", "127.0.0.1:11300")
id, err := c.Put([]byte("hello"), 1, 0, 120*time.Second)

Consume jobs:

c, err := beanstalk.Dial("tcp", "127.0.0.1:11300")
id, body, err := c.Reserve(5 * time.Second)