Payload is an interface that makes sure all payloads with Message have a method to compare them.
| 34 | |
| 35 | // Payload is an interface that makes sure all payloads with Message have a method to compare them. |
| 36 | type Payload interface { |
| 37 | // Equals compares if the current payload is identical to the provided other payload. |
| 38 | Equals(payload Payload) bool |
| 39 | } |
| 40 | |
| 41 | // Equals is a method to compare two messages with each other. |
| 42 | func (m Message) Equals(other Message) bool { |
no outgoing calls
no test coverage detected