InvalidMessage is definition of invalid message used as argument for InvalidMessageCallback by Consumer.
| 128 | Logger: noopLogger, |
| 129 | } |
| 130 | |
| 131 | // InvalidMessageCallback defines what should happen to messages which are identified as invalid. |
| 132 | // Such messages usually have missing or malformed required fields. |
| 133 | type InvalidMessageCallback func(ctx context.Context, msg InvalidMessage, err error) |
| 134 | |
| 135 | // InvalidMessage is definition of invalid message used as argument for InvalidMessageCallback by Consumer. |
| 136 | type InvalidMessage struct { |
| 137 | ID string |
nothing calls this directly
no outgoing calls
no test coverage detected