init push

This commit is contained in:
2026-05-21 19:52:45 +08:00
commit e3f75311ab
1280 changed files with 179173 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package nats
import (
"github.com/nats-io/nats.go"
"github.com/chaitin/panda-wiki/mq/types"
)
type Message struct {
msg *nats.Msg
}
func (m *Message) GetData() []byte {
return m.msg.Data
}
func (m *Message) GetTopic() string {
return m.msg.Subject
}
var _ types.Message = (*Message)(nil)