MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / NoopPushHandler

Struct NoopPushHandler

internal/nodehub/hub.go:50–50  ·  view source on GitHub ↗

NoopPushHandler 是 PushHandler 的空实现:OnUsagePush 立即 ack,其他方法 no-op。 用于尚未接入业务的过渡期或测试。

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected