NewPathStore creates a new PathStore.
()
| 17 | |
| 18 | // NewPathStore creates a new PathStore. |
| 19 | func NewPathStore() *PathStore { |
| 20 | return &PathStore{ |
| 21 | chatPaths: make(map[uuid.UUID]map[string]struct{}), |
| 22 | subscribers: make(map[uuid.UUID][]chan<- struct{}), |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // AddPaths adds paths to every chat in chatIDs and notifies |
| 27 | // their subscribers. Zero-value UUIDs are silently skipped. |
no outgoing calls