Project Moscato Team Messaging Middleware Implemetation Message Middleware by Golang Operate as Secure, Effectively
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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