Added JSON Payload Converter

This commit is contained in:
Bole Ma
2023-10-25 23:27:06 +02:00
parent 59f6658344
commit a3fbdbcf90
5 changed files with 509 additions and 158 deletions

View File

@@ -110,10 +110,10 @@ func injectPayload() {
// Start the HTTP server on port 8080
fmt.Println("Listening on :8080...")
http.ListenAndServe(":8080", nil)
go http.ListenAndServe(":8080", nil)
}
func main() {
func loadSlurmNatsScheduler() {
cfgData := []byte(`{"target": "localhost"}`)
var sch scheduler.SlurmNatsScheduler
@@ -122,5 +122,16 @@ func main() {
// go injectPayload()
}
func main() {
var sch scheduler.SlurmRestSchedulerConfig
sch.Init()
// injectPayload()
sch.Sync()
os.Exit(0)
}