package
Version:
v0.0.0-...-97150c2
Opens a new window with list of versions in this module.
Published: Jun 29, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Collector struct {
Work chan *Job
}
type Job struct {
Data interface{}
JobFunc JobFunc
}
type JobFunc func(id int64, data interface{})
func (e *Queue) Pop() (v interface{})
func (e *Queue) Push(v interface{})
func (e *Queue) TryPop() (v interface{}, ok bool)
type Worker struct {
ID int64
WorkerChannel chan chan *Job
Channel chan *Job
End chan struct{}
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.