handler is a simple implementation of the Handler interface
| 28 | |
| 29 | // handler is a simple implementation of the Handler interface |
| 30 | type handler struct { |
| 31 | handle func(*Message) |
| 32 | close func() |
| 33 | } |
| 34 | |
| 35 | func (h handler) Handle(m *Message) { h.handle(m) } |
| 36 | func (h handler) Close() { |
no outgoing calls
no test coverage detected