implement broker

This commit is contained in:
2025-12-04 18:00:43 +09:00
parent cb958834cb
commit 13d37881b9
7 changed files with 190 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package broker
import "context"
type Broker interface {
Publish(ctx context.Context, topic string, message []byte) error
Subscribe(ctx context.Context, durable string, fn func(topic string, message []byte) error) error
}