| 26 | } |
| 27 | |
| 28 | type Broker struct { |
| 29 | lock sync.Mutex |
| 30 | rpcClient StreamRpcInterface |
| 31 | readers map[string]*Reader |
| 32 | writers map[string]StreamWriter |
| 33 | readerRoutes map[string]string |
| 34 | writerRoutes map[string]string |
| 35 | readerErrorSentTime map[string]time.Time |
| 36 | sendQueue *utilds.WorkQueue[workItem] |
| 37 | recvQueue *utilds.WorkQueue[workItem] |
| 38 | } |
| 39 | |
| 40 | func NewBroker(rpcClient StreamRpcInterface) *Broker { |
| 41 | b := &Broker{ |
nothing calls this directly
no outgoing calls
no test coverage detected