2023-07-19 21:31:00 +01:00
|
|
|
package vstp
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2024-03-25 11:26:07 +00:00
|
|
|
"git.fjla.uk/owlboard/timetable-mgr/log"
|
2023-07-19 21:31:00 +01:00
|
|
|
"github.com/go-stomp/stomp/v3"
|
|
|
|
)
|
|
|
|
|
|
|
|
var count uint64 = 0
|
|
|
|
|
|
|
|
func handle(msg *stomp.Message) {
|
|
|
|
count++
|
2023-07-21 14:40:24 +01:00
|
|
|
log.Msg.Info("Messages since started: " + fmt.Sprint(count))
|
2023-07-20 11:07:39 +01:00
|
|
|
schedule := unmarshalData(string(msg.Body))
|
2023-07-21 12:12:16 +01:00
|
|
|
processEntryType(schedule)
|
2023-07-19 21:31:00 +01:00
|
|
|
}
|