| 3 | import "sync" |
| 4 | |
| 5 | type Scrubber struct { |
| 6 | // Next callback number. |
| 7 | // Incremented atomically by register(). |
| 8 | seq uint64 |
| 9 | |
| 10 | // Reference to sent callbacks are saved in this map. |
| 11 | sync.Mutex // protects |
| 12 | callbacks map[uint64]func(*Partial) |
| 13 | } |
| 14 | |
| 15 | // New returns a pointer to a new Scrubber. |
| 16 | func NewScrubber() *Scrubber { |
nothing calls this directly
no outgoing calls
no test coverage detected