starting simple messaging code

This commit is contained in:
2025-03-08 15:17:27 +09:00
parent 7b1d383813
commit ae13d0c4ed
2 changed files with 22 additions and 0 deletions

21
bulletin.go Normal file
View File

@ -0,0 +1,21 @@
package hodu
type Message struct {
}
type Subscriber struct {
}
type Bulletin struct {
}
func NewBulletin() *Bulletin {
return &Bulletin{}
}
func (b *Bulletin) Subscribe(topic string) {
}
func (b *Bulletin) Publish(topic string, data interface{}) {
}