timetable-mgr/src/cif/update.go

23 lines
528 B
Go

package cif
import (
"errors"
"git.fjla.uk/owlboard/timetable-mgr/log"
"go.uber.org/zap"
)
func runUpdate(updateType string) error {
url, err := getUpdateUrl(updateType)
if err != nil {
log.Msg.Error("Unable to get the update URL", zap.Error(err))
return err
}
return errors.New("This function is not yet defined")
// Fetch Data
// Check that the data is not too old. Maybe aim for less than two days?
// Write a parsing function that can handle VSTP as well as SCHEDULE data
// Handle database management
}