MCPcopy
hub / github.com/zeromicro/go-zero / Queue

Struct Queue

core/queue/queue.go:20–35  ·  view source on GitHub ↗

A Queue is a message queue.

Source from the content-addressed store, hash-verified

18type (
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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected