2012-05-22 20:05:39 +08:00
|
|
|
// Copyright 2011 Xing Xing <mikespook@gmail.com> All rights reserved.
|
2012-03-26 13:32:59 +08:00
|
|
|
// 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
|
|
|
|
|
2012-05-22 20:05:39 +08:00
|
|
|
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
|
2012-03-26 13:32:59 +08:00
|
|
|
)
|