28 lines
497 B
Go
28 lines
497 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
|
|
|
|
*/
|