Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
mikespook b266c0cfe4 Added tag go1-0.1 for changeset a3b64f831c51 vor 12 Jahren
client add timeout to client.Do vor 12 Jahren
common add timeout to client.Do vor 12 Jahren
example The worker can be working now. vor 12 Jahren
worker add timeout to client.Do vor 12 Jahren
.hgtags Added tag go1-0.1 for changeset a3b64f831c51 vor 12 Jahren
LICENSE Added the client vor 13 Jahren
README.md add timeout to client.Do vor 12 Jahren
gearman.go fixing for 'go install' vor 12 Jahren

README.md

Gearman API for golang

This module is Gearman API for golang. It was implemented a native protocol for both worker and client API.

Copyright 2012 Xing Xing mikespook@gmail.com All rights reserved. Use of this source code is governed by a MIT license that can be found in the LICENSE file.

INSTALL

This will install the client:

$ go get bitbucket.org/mikespook/gearman-go/client

This will install the worker:

$ go get bitbucket.org/mikespook/gearman-go/worker

This will install the client and the worker automatically:

$ go get bitbucket.org/mikespook/gearman-go

SAMPLE OF USAGE

Worker

$ cd example

$ go build worker

$ ./worker

Client

$ cd example

$ go build client

$ ./client

Code format

$ gofmt -spaces=true -tabwidth=4 -w=true -tabindent=false $(DIR)

Contacts

Xing Xing mikespook@gmail.com

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.

TODO

  • Can not grab a job correctly.
  • The worker should can reconnect to the job server.