starting simple messaging code
This commit is contained in:
parent
7b1d383813
commit
ae13d0c4ed
1
Makefile
1
Makefile
@ -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
21
bulletin.go
Normal 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{}) {
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user