From bd2478557e2f34524533ff732f54aba2fe995b48 Mon Sep 17 00:00:00 2001 From: mikespook Date: Thu, 24 May 2012 16:56:36 +0800 Subject: [PATCH] fixing for 'go install' --HG-- branch : 0.1 --- README.md | 11 ++++++++--- gearman.go | 15 ++++----------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index cf930bd..23e11d5 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ in the LICENSE file. 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: -> $ 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: @@ -46,8 +46,13 @@ This will install the client and the worker automatically: # Contacts -xingxing +Xing Xing http://mikespook.com 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. diff --git a/gearman.go b/gearman.go index 5c17914..48c134b 100644 --- a/gearman.go +++ b/gearman.go @@ -9,15 +9,8 @@ The protocol was implemented by native way. package gearman -const ( - // Job type - // JOB_NORMAL | JOB_BG means a normal level job run in background - // normal level - JOB_NORMAL = 0 - // background job - JOB_BG = 1 - // low level - JOB_LOW = 2 - // high level - JOB_HIGH = 4 +import ( + _ "bitbucket.org/mikespook/gearman-go/common" + _ "bitbucket.org/mikespook/gearman-go/client" + _ "bitbucket.org/mikespook/gearman-go/worker" )