Move message struct definition to hub
This commit is contained in:
parent
959bc56bc3
commit
9d6d240bbc
|
@ -13,6 +13,10 @@ type (
|
|||
subscribers []*Subscription
|
||||
lock sync.Mutex
|
||||
}
|
||||
Message struct {
|
||||
Queue string
|
||||
Message []byte
|
||||
}
|
||||
)
|
||||
|
||||
func New(st *storage.Storage) *Hub {
|
||||
|
|
|
@ -6,10 +6,6 @@ type (
|
|||
result chan Message
|
||||
done chan struct{}
|
||||
}
|
||||
Message struct {
|
||||
Queue string
|
||||
Message []byte
|
||||
}
|
||||
)
|
||||
|
||||
func NewSubscription(queues []string) *Subscription {
|
||||
|
|
Loading…
Reference in New Issue