This commit is contained in:
2024-09-30 23:28:02 +07:00
parent e9e93e2162
commit d53369f529
14 changed files with 157 additions and 20 deletions

View File

@ -53,9 +53,10 @@ func main() {
defer cRepo.db.Close()
TCPServer := NewTCPServer(cfg.TelnetServer.Host, cfg.TelnetServer.Port, log)
FlexClient := NewFlexClient(*fRepo, *TCPServer, log)
FlexClient := NewFlexClient(*fRepo, TCPServer, log)
TCPClient := NewTCPClient(TCPServer, FlexClient, log)
HTTPServer := NewHTTPServer(*cRepo, *fRepo, *FlexClient, log)
HTTPServer := NewHTTPServer(*cRepo, *fRepo, FlexClient, TCPServer, log)
sigCh := make(chan os.Signal, 1)
signal.Notify(sigCh, syscall.SIGHUP, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGTERM)