定义上行事件监听器

This commit is contained in:
2025-09-15 22:01:00 +08:00
parent 6131f38232
commit 621c45f9c0
4 changed files with 89 additions and 17 deletions

View File

@@ -0,0 +1,8 @@
package transport
import "net/http"
// ListenHandler 是一个监听器, 用于监听设备上行事件
type ListenHandler interface {
Handler() http.HandlerFunc
}