feat kafka 改版 2

This commit is contained in:
2026-01-30 10:53:00 +08:00
parent a2251b9cb7
commit 427fca7ed1
4 changed files with 452 additions and 461 deletions

View File

@@ -1,5 +1,8 @@
package kafka
import "context"
type Topic interface {
Name() string
OnMessage(context.Context) error
}