Project Moscato Team Messaging Middleware Implemetation Message Middleware by Golang Operate as Secure, Effectively
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }