A Queue is a message queue.
| 18 | type ( |
| 19 | // A Queue is a message queue. |
| 20 | Queue struct { |
| 21 | name string |
| 22 | metrics *stat.Metrics |
| 23 | producerFactory ProducerFactory |
| 24 | producerRoutineGroup *threading.RoutineGroup |
| 25 | consumerFactory ConsumerFactory |
| 26 | consumerRoutineGroup *threading.RoutineGroup |
| 27 | producerCount int |
| 28 | consumerCount int |
| 29 | active int32 |
| 30 | channel chan string |
| 31 | quit chan struct{} |
| 32 | listeners []Listener |
| 33 | eventLock sync.Mutex |
| 34 | eventChannels []chan any |
| 35 | } |
| 36 | |
| 37 | // A Listener interface represents a listener that can be notified with queue events. |
| 38 | Listener interface { |
nothing calls this directly
no outgoing calls
no test coverage detected