(id FunnelID)
| 102 | } |
| 103 | |
| 104 | func (ft *FunnelTracker) Get(id FunnelID) (Funnel, bool) { |
| 105 | ft.lock.RLock() |
| 106 | defer ft.lock.RUnlock() |
| 107 | funnel, ok := ft.funnels[id] |
| 108 | return funnel, ok |
| 109 | } |
| 110 | |
| 111 | // Registers a funnel. If the `id` is already registered and `shouldReplaceFunc` returns true, it closes and replaces |
| 112 | // the current funnel. If `newFunnelFunc` returns an error, the `id` will remain unregistered, even if it was registered |
no outgoing calls