NoopPushHandler 是 PushHandler 的空实现:OnUsagePush 立即 ack,其他方法 no-op。 用于尚未接入业务的过渡期或测试。
| 48 | // NoopPushHandler 是 PushHandler 的空实现:OnUsagePush 立即 ack,其他方法 no-op。 |
| 49 | // 用于尚未接入业务的过渡期或测试。 |
| 50 | type NoopPushHandler struct{} |
| 51 | |
| 52 | func (NoopPushHandler) OnHello(string, []byte) {} |
| 53 | func (NoopPushHandler) OnUsagePush(string, uint64, []byte) error { return nil } |
nothing calls this directly
no outgoing calls
no test coverage detected