Notify implements the Handler interface.
(evt Event)
| 43 | |
| 44 | // Notify implements the Handler interface. |
| 45 | func (ch Channel) Notify(evt Event) { |
| 46 | select { |
| 47 | case ch <- evt: |
| 48 | default: |
| 49 | channelDropped.WithLabelValues(evt.Name()).Inc() |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | // ReceiveTimeout returns the next event from the channel or returns nil after a timeout. |
| 54 | func (ch Channel) ReceiveTimeout(timeout time.Duration) Event { |
nothing calls this directly
no test coverage detected