refactor: decouple application startup logic from main

This commit is contained in:
2026-01-23 23:51:58 +07:00
parent 24b9872aa4
commit d0e052524c
8 changed files with 214 additions and 164 deletions
-1
View File
@@ -114,5 +114,4 @@ func (s *server) handleConnection(conn net.Conn) {
log.Printf("SSH session ended with error: %s", err.Error())
return
}
return
}
+1
View File
@@ -49,6 +49,7 @@ func (m *mockConfig) Mode() types.ServerMode { return m.Called().Get(0).(type
func (m *mockConfig) GRPCAddress() string { return m.Called().String(0) }
func (m *mockConfig) GRPCPort() string { return m.Called().String(0) }
func (m *mockConfig) NodeToken() string { return m.Called().String(0) }
func (m *mockConfig) KeyLoc() string { return m.Called().String(0) }
type mockRegistry struct {
mock.Mock