timetable-mgr/src/vstp/handler.go

18 lines
306 B
Go
Raw Normal View History

2023-07-19 21:31:00 +01:00
package vstp
import (
"fmt"
"git.fjla.uk/owlboard/mq-client/log"
"github.com/go-stomp/stomp/v3"
)
var count uint64 = 0
func handle(msg *stomp.Message) {
count++
log.Msg.Info("Messages since started: " + fmt.Sprint(count))
schedule := unmarshalData(string(msg.Body))
processEntryType(schedule)
2023-07-19 21:31:00 +01:00
}