7614c2678a
--HG-- branch : 0.1 rename : gearman/client/client.go => client/client.go rename : gearman/client/client_test.go => client/client_test.go rename : gearman/client/clientjob.go => client/job.go rename : gearman/gearman.go => common/gearman.go rename : gearman/worker/jobagent.go => worker/jobagent.go rename : gearman/worker/worker.go => worker/worker.go rename : gearman/worker/worker_test.go => worker/worker_test.go rename : gearman/worker/workerjob.go => worker/workerjob.go
24 lines
518 B
Go
24 lines
518 B
Go
// Copyright 2011 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.
|
|
|
|
/*
|
|
This module is Gearman API for golang.
|
|
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
|
|
)
|