You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
461 B
Go

package main
import (
"fmt"
2 years ago
"FRMS/internal/pkg/reactor"
)
2 years ago
type coordinator interface {
Start() error
}
2 years ago
func NewCoordinator(s string) coordinator {
// allows interface checking as opposed to calling directly
return reactor.NewCoordinator(s)
}
2 years ago
func main() {
2 years ago
rlc := NewCoordinator("192.1.168.__:____") // host port
go rlc.Start()
fmt.Printf("Starting reactor")
2 years ago
for true {
// endless loop to keep main alive
}
}