Files
HomesteadGateway/main.go
2025-12-02 10:34:45 +01:00

26 lines
495 B
Go

package main
import (
"flag"
"homestead/homestead_gateway/controller"
"homestead/homestead_gateway/util/config"
)
func main() {
cfgPath := flag.String("config", "config.toml", "configuration file")
cfg, err := config.LoadConfig(*cfgPath)
if err != nil {
panic(err)
}
ctrl := controller.NewGatewayController(*cfg)
err = ctrl.Run()
if err != nil {
panic(err)
}
}
/** TODO
- queue for messages, both ways (Ack "queued" instead of "completed"), filled queue drops oldest entry
*/