starting simple messaging code

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

View File

@ -9,6 +9,7 @@ NAME=hodu
VERSION=1.0.0
SRCS=\
bulletin.go \
client.go \
client-ctl.go \
client-metrics.go \

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{}) {
}