New returns a pointer to a new Scrubber.
()
| 14 | |
| 15 | // New returns a pointer to a new Scrubber. |
| 16 | func NewScrubber() *Scrubber { |
| 17 | return &Scrubber{ |
| 18 | callbacks: make(map[uint64]func(*Partial)), |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | // RemoveCallback removes the callback with id from callbacks. |
| 23 | // Can be used to remove unused callbacks to free memory. |
no outgoing calls