You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.1 KiB

12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Gearman API for golang
  2. This module is Gearman API for golang. It was implemented a native
  3. protocol for both worker and client API.
  4. Copyright 2012 Xing Xing <mikespook@gmail.com> All rights reserved.
  5. Use of this source code is governed by a MIT license that can be found
  6. in the LICENSE file.
  7. # INSTALL
  8. This will install the client:
  9. > $ go get bitbucket.org/mikespook/gearman-go/client
  10. This will install the worker:
  11. > $ go get bitbucket.org/mikespook/gearman-go/worker
  12. This will install the client and the worker automatically:
  13. > $ go get bitbucket.org/mikespook/gearman-go
  14. # SAMPLE OF USAGE
  15. ## Worker
  16. > $ cd example
  17. >
  18. > $ go build worker
  19. >
  20. > $ ./worker
  21. ## Client
  22. > $ cd example
  23. >
  24. > $ go build client
  25. >
  26. > $ ./client
  27. # Code format
  28. > $ gofmt -spaces=true -tabwidth=4 -w=true -tabindent=false $(DIR)
  29. # Contacts
  30. Xing Xing <mikespook@gmail.com>
  31. http://mikespook.com
  32. http://twitter.com/mikespook
  33. # History
  34. * 0.1 Refactoring code, redesign the API.
  35. * 0.0.1 Initial implementation, ugly code-style, slow profermance and unstable API.
  36. # TODO
  37. * Can not grab a job correctly.
  38. * Worker's auto-reconnection.