Documentation
¶
Index ¶
- Variables
- type JobBoard
- type JobWorker
- type JobWorkerOpts
- type STAGE
- type Task
- func (*Task) Descriptor() ([]byte, []int)
- func (m *Task) GetArgv() []byte
- func (m *Task) GetId() string
- func (m *Task) GetStage() STAGE
- func (m *Task) GetSubject() string
- func (*Task) ProtoMessage()
- func (m *Task) Reset()
- func (m *Task) String() string
- func (m *Task) XXX_DiscardUnknown()
- func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Task) XXX_Merge(src proto.Message)
- func (m *Task) XXX_Size() int
- func (m *Task) XXX_Unmarshal(b []byte) error
- type TaskMgr
Constants ¶
This section is empty.
Variables ¶
View Source
var STAGE_name = map[int32]string{
0: "PENDING",
1: "SUCCESS",
2: "FAILED",
}
View Source
var STAGE_value = map[string]int32{
"PENDING": 0,
"SUCCESS": 1,
"FAILED": 2,
}
Functions ¶
This section is empty.
Types ¶
type JobBoard ¶
type JobBoard struct {
// contains filtered or unexported fields
}
func NewJobBoard ¶
type JobWorker ¶
type JobWorker struct {
JobWorkerOpts
// contains filtered or unexported fields
}
func NewJobWorker ¶
func NewJobWorker(taskMgr TaskMgr, opts JobWorkerOpts) *JobWorker
type JobWorkerOpts ¶
type Task ¶
type Task struct {
Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Argv []byte `protobuf:"bytes,3,opt,name=argv,proto3" json:"argv,omitempty"`
Stage STAGE `protobuf:"varint,4,opt,name=stage,proto3,enum=mq.STAGE" json:"stage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Task) Descriptor ¶
func (*Task) GetSubject ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) XXX_DiscardUnknown ¶
func (m *Task) XXX_DiscardUnknown()
func (*Task) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.