Project Moscato Team Messaging Middleware Implemetation Message Middleware by Golang Operate as Secure, Effectively
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

matching.go 327B

123456789101112131415161718192021
  1. package modules
  2. import (
  3. _ "errors"
  4. _ "fmt"
  5. )
  6. type match_manager struct {
  7. }
  8. func (match_mng *match_manager) matching(queue *MsgQueue) error {
  9. msg := queue.pop(true)
  10. //Implement here ~~
  11. subscription := msg.(*PublishMsg).subscription
  12. content := msg.(*PublishMsg).content
  13. println(subscription, content)
  14. return nil
  15. }