moved to github

This commit is contained in:
mikespook 2012-12-21 11:11:37 +08:00
parent c3e789b516
commit d6c6bfe9f0
13 changed files with 38 additions and 38 deletions

View File

@ -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 <mikespook@gmail.com>
Xing Xing <mikespook@gmail.com> [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.

View File

@ -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

View File

@ -7,7 +7,7 @@ package client
import (
"bytes"
"bitbucket.org/mikespook/gearman-go/common"
"github.com/mikespook/gearman-go/common"
)
const (

View File

@ -3,7 +3,7 @@ package main
import (
"log"
"sync"
"bitbucket.org/mikespook/gearman-go/client"
"github.com/mikespook/gearman-go/client"
)
func main() {

View File

@ -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 {

View File

@ -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) {

View File

@ -6,7 +6,7 @@
package main
import (
"bitbucket.org/mikespook/golib/log"
"github.com/mikespook/golib/log"
"flag"
"strings"
)

View File

@ -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 (

View File

@ -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) {

View File

@ -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"
)

View File

@ -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.

View File

@ -7,7 +7,7 @@ package worker
import (
"strconv"
"bitbucket.org/mikespook/gearman-go/common"
"github.com/mikespook/gearman-go/common"
)
// Worker side job

View File

@ -7,7 +7,7 @@ package worker
import (
"time"
"bytes"
"bitbucket.org/mikespook/gearman-go/common"
"github.com/mikespook/gearman-go/common"
)
const (