fixing for 'go install'

--HG--
branch : 0.1
This commit is contained in:
mikespook 2012-05-24 16:56:36 +08:00
parent d6a9025a56
commit bd2478557e
2 changed files with 12 additions and 14 deletions

View File

@ -11,11 +11,11 @@ in the LICENSE file.
This will install the client: This will install the client:
> $ go get bitbucket.org/mikespook/gearman-go/gearman/client > $ go get bitbucket.org/mikespook/gearman-go/client
This will install the worker: This will install the worker:
> $ go get bitbucket.org/mikespook/gearman-go/gearman/worker > $ go get bitbucket.org/mikespook/gearman-go/worker
This will install the client and the worker automatically: This will install the client and the worker automatically:
@ -46,8 +46,13 @@ This will install the client and the worker automatically:
# Contacts # Contacts
xingxing<mikespook@gmail.com> Xing Xing <mikespook@gmail.com>
http://mikespook.com http://mikespook.com
http://twitter.com/mikespook http://twitter.com/mikespook
# History
* 0.1 Refactoring code, redesign the API.
* 0.0.1 Initial implementation, ugly code-style, slow profermance and unstable API.

View File

@ -9,15 +9,8 @@ The protocol was implemented by native way.
package gearman package gearman
const ( import (
// Job type _ "bitbucket.org/mikespook/gearman-go/common"
// JOB_NORMAL | JOB_BG means a normal level job run in background _ "bitbucket.org/mikespook/gearman-go/client"
// normal level _ "bitbucket.org/mikespook/gearman-go/worker"
JOB_NORMAL = 0
// background job
JOB_BG = 1
// low level
JOB_LOW = 2
// high level
JOB_HIGH = 4
) )