2011-05-19 20:10:53 +08:00
|
|
|
Gearman API for golang
|
|
|
|
|
|
|
|
This module is Gearman API for golang.
|
|
|
|
It was implemented a native protocol for both worker and client API.
|
|
|
|
|
|
|
|
- INSTALL
|
|
|
|
$ cd ./src/pkg/gearman/
|
|
|
|
$ make install
|
|
|
|
|
|
|
|
- SAMPLE OF USAGE
|
|
|
|
# example/worker.go
|
|
|
|
$ make worker
|
|
|
|
$ ./worker
|
|
|
|
|
|
|
|
# example/client.go
|
|
|
|
$ make client
|
|
|
|
$ ./client
|
|
|
|
|
2011-05-24 13:20:22 +08:00
|
|
|
- Code format
|
|
|
|
gofmt -spaces=true -tabwidth=4 -w=true -tabindent=false $(DIR)
|
|
|
|
|
2011-05-19 20:10:53 +08:00
|
|
|
----
|
|
|
|
xingxing<mikespook@gmail.com>
|
|
|
|
http://mikespook.com
|
2011-05-23 12:15:48 +08:00
|
|
|
http://twitter.com/mikespook
|