Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWorkerIsStop = errors.New("Worker is stop") ErrNilJobDo = errors.New("Job do field is nil") )
错误
View Source
var DefaultWorker = New(defaultCount)
DefaultWorker 默认Wroker
Functions ¶
This section is empty.
Types ¶
type IWorkerMock ¶ added in v0.5.0
type WorkerMock ¶ added in v0.5.0
func (*WorkerMock) Push ¶ added in v0.5.0
func (mockRecv *WorkerMock) Push(job Job) error
func (*WorkerMock) Start ¶ added in v0.5.0
func (mockRecv *WorkerMock) Start()
func (*WorkerMock) Stop ¶ added in v0.5.0
func (mockRecv *WorkerMock) Stop()
type WorkerMockMock ¶ added in v0.5.0
func (*WorkerMockMock) Push ¶ added in v0.5.0
func (mockRecv *WorkerMockMock) Push(job Job) error
func (*WorkerMockMock) Start ¶ added in v0.5.0
func (mockRecv *WorkerMockMock) Start()
func (*WorkerMockMock) Stop ¶ added in v0.5.0
func (mockRecv *WorkerMockMock) Stop()
Click to show internal directories.
Click to hide internal directories.