Project Moscato Team Messaging Middleware Implemetation Message Middleware by Golang Operate as Secure, Effectively
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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