From d6c6bfe9f011021c28ca173d8a4f82faf3607cdf Mon Sep 17 00:00:00 2001 From: mikespook Date: Fri, 21 Dec 2012 11:11:37 +0800 Subject: [PATCH] moved to github --- README.md | 32 ++++++++++++++++---------------- client/client.go | 4 ++-- client/job.go | 2 +- example/client.go | 2 +- example/exec-worker/exec.go | 4 ++-- example/exec-worker/func.go | 4 ++-- example/exec-worker/log.go | 2 +- example/exec-worker/worker.go | 10 +++++----- example/worker.go | 4 ++-- gearman.go | 6 +++--- worker/agent.go | 2 +- worker/job.go | 2 +- worker/worker.go | 2 +- 13 files changed, 38 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 1837741..78762fa 100644 --- a/README.md +++ b/README.md @@ -8,22 +8,24 @@ All rights reserved. Use of this source code is governed by a MIT license that can be found in the LICENSE file. -# INSTALL +Install +======= Install the client package: -> $ go get bitbucket.org/mikespook/gearman-go/client +> $ go get github.com/mikespook/gearman-go/client Install the worker package: -> $ go get bitbucket.org/mikespook/gearman-go/worker +> $ go get github.com/mikespook/gearman-go/worker Install both: -> $ go get bitbucket.org/mikespook/gearman-go +> $ go get github.com/mikespook/gearman-go -# SAMPLE OF USAGE +Usage +===== ## Worker @@ -53,19 +55,17 @@ Install both: handle, err := c.Do("ToUpper", echo, client.JOB_NORMAL) // ... -# Contacts +Authors +======= -Xing Xing +Xing Xing [Blog](http://mikespook.com) [@Twitter](http://twitter.com/mikespook) -[Blog](http://mikespook.com) +Open Source - MIT Software License +================================== +Copyright (c) 2012 Xing Xing -[@Twitter](http://twitter.com/mikespook) +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -# History +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - * 0.1.2 Fixed issues: timeout executing, resources leaking. - * 0.1.1 Fixed the issue of grabbing jobs. - * 0.1 Code refactoring; Redesign the API. - * 0.0.1 Initial implementation, ugly code-style, slow profermance and unstable API. - -# TODO +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/client/client.go b/client/client.go index 389259b..6c2c626 100644 --- a/client/client.go +++ b/client/client.go @@ -11,8 +11,8 @@ import ( "time" "bytes" "strconv" - "bitbucket.org/mikespook/golib/autoinc" - "bitbucket.org/mikespook/gearman-go/common" + "github.com/mikespook/golib/autoinc" + "github.com/mikespook/gearman-go/common" ) // Job handler diff --git a/client/job.go b/client/job.go index 6b7246a..cbcfa20 100644 --- a/client/job.go +++ b/client/job.go @@ -7,7 +7,7 @@ package client import ( "bytes" - "bitbucket.org/mikespook/gearman-go/common" + "github.com/mikespook/gearman-go/common" ) const ( diff --git a/example/client.go b/example/client.go index d1ad7a2..43ef1e4 100644 --- a/example/client.go +++ b/example/client.go @@ -3,7 +3,7 @@ package main import ( "log" "sync" - "bitbucket.org/mikespook/gearman-go/client" + "github.com/mikespook/gearman-go/client" ) func main() { diff --git a/example/exec-worker/exec.go b/example/exec-worker/exec.go index 49f1fbb..760f97b 100644 --- a/example/exec-worker/exec.go +++ b/example/exec-worker/exec.go @@ -10,8 +10,8 @@ import ( "bytes" "os/exec" "encoding/json" - "bitbucket.org/mikespook/golib/log" - "bitbucket.org/mikespook/gearman-go/worker" + "github.com/mikespook/golib/log" + "github.com/mikespook/gearman-go/worker" ) type outData struct { diff --git a/example/exec-worker/func.go b/example/exec-worker/func.go index 26d79f5..383861c 100644 --- a/example/exec-worker/func.go +++ b/example/exec-worker/func.go @@ -6,8 +6,8 @@ package main import ( - "bitbucket.org/mikespook/golib/log" - "bitbucket.org/mikespook/gearman-go/worker" + "github.com/mikespook/golib/log" + "github.com/mikespook/gearman-go/worker" ) func execShell(job *worker.Job) (result []byte, err error) { diff --git a/example/exec-worker/log.go b/example/exec-worker/log.go index d4ad9dd..bc1aaae 100644 --- a/example/exec-worker/log.go +++ b/example/exec-worker/log.go @@ -6,7 +6,7 @@ package main import ( - "bitbucket.org/mikespook/golib/log" + "github.com/mikespook/golib/log" "flag" "strings" ) diff --git a/example/exec-worker/worker.go b/example/exec-worker/worker.go index 39c32eb..271639a 100644 --- a/example/exec-worker/worker.go +++ b/example/exec-worker/worker.go @@ -9,11 +9,11 @@ import ( "os" "flag" "time" - "bitbucket.org/mikespook/golib/log" - "bitbucket.org/mikespook/golib/pid" - "bitbucket.org/mikespook/golib/prof" - "bitbucket.org/mikespook/golib/signal" - "bitbucket.org/mikespook/gearman-go/worker" + "github.com/mikespook/golib/log" + "github.com/mikespook/golib/pid" + "github.com/mikespook/golib/prof" + "github.com/mikespook/golib/signal" + "github.com/mikespook/gearman-go/worker" ) var ( diff --git a/example/worker.go b/example/worker.go index 0426727..bcb7154 100644 --- a/example/worker.go +++ b/example/worker.go @@ -5,8 +5,8 @@ import ( "log" "time" "strings" - "bitbucket.org/mikespook/golib/signal" - "bitbucket.org/mikespook/gearman-go/worker" + "github.com/mikespook/golib/signal" + "github.com/mikespook/gearman-go/worker" ) func ToUpper(job *worker.Job) ([]byte, error) { diff --git a/gearman.go b/gearman.go index 48c134b..5dc77a7 100644 --- a/gearman.go +++ b/gearman.go @@ -10,7 +10,7 @@ The protocol was implemented by native way. package gearman import ( - _ "bitbucket.org/mikespook/gearman-go/common" - _ "bitbucket.org/mikespook/gearman-go/client" - _ "bitbucket.org/mikespook/gearman-go/worker" + _ "github.com/mikespook/gearman-go/common" + _ "github.com/mikespook/gearman-go/client" + _ "github.com/mikespook/gearman-go/worker" ) diff --git a/worker/agent.go b/worker/agent.go index 7740acd..227adbb 100644 --- a/worker/agent.go +++ b/worker/agent.go @@ -7,7 +7,7 @@ package worker import ( "io" "net" - "bitbucket.org/mikespook/gearman-go/common" + "github.com/mikespook/gearman-go/common" ) // The agent of job server. diff --git a/worker/job.go b/worker/job.go index ccbb48c..bbbe60b 100644 --- a/worker/job.go +++ b/worker/job.go @@ -7,7 +7,7 @@ package worker import ( "strconv" - "bitbucket.org/mikespook/gearman-go/common" + "github.com/mikespook/gearman-go/common" ) // Worker side job diff --git a/worker/worker.go b/worker/worker.go index b8c1642..0456067 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -7,7 +7,7 @@ package worker import ( "time" "bytes" - "bitbucket.org/mikespook/gearman-go/common" + "github.com/mikespook/gearman-go/common" ) const (