You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`context_*.go` - Platform-specific context variables (Xterm command differs by OS)
67
78
-`httpserver/` - HTTP server implementation
68
79
-`httpserver_basic.go` - `BasicHTTPServer` struct and `Serve()` method
69
80
-`static/` - Embedded static files and templates
@@ -78,7 +89,10 @@ The server runs on port 8261 by default. Use `--enable-all` to enable all servic
78
89
-`/site/` - Static site templates
79
90
-`/` - Static root files
80
91
81
-
**Command Configuration** (`cmd/root.go`): Uses `go-cmdhelping` for CLI options. Configuration via environment variables (prefixed `SENZING_TOOLS_`) or command-line flags.
92
+
**Command Configuration** (`cmd/root.go`): Uses `go-cmdhelping` for CLI options. The `RunE` function builds a `BasicHTTPServer` from Viper config and calls `Serve()`. Supports two modes:
93
+
94
+
- Local mode: Connects directly to database via `SENZING_TOOLS_DATABASE_URL`
95
+
- gRPC mode: Connects to remote Senzing server via `SENZING_TOOLS_GRPC_URL`
82
96
83
97
### Dependencies
84
98
@@ -91,4 +105,4 @@ Key Senzing packages:
91
105
92
106
### Test Data
93
107
94
-
Test setup copies `testdata/sqlite/G2C.db` to `/tmp/sqlite/G2C.db` for testing.
108
+
Test setup (`make setup`) copies `testdata/sqlite/G2C.db` to `/tmp/sqlite/G2C.db`. Tests use this SQLite database.
0 commit comments