Documentation
¶
Overview ¶
Package main exists for exactly ONE reason (REL-01): the Go module root is the package path resolved by the short-form install command
go install github.com/Lutfifakee-Project/GSEER@latest
and `go install` requires a main package at the module root. Without this file that command fails with "does not contain package" and the easy-install path documented in docs/INSTALL.md is broken.
This file is a deliberate mirror of cmd/gseer/main.go — the canonical release entry point that GoReleaser builds (builds.main in .goreleaser.yaml). It contains NO command logic of its own: all dispatch lives in internal/cli, so there is exactly one command tree and both entry points cannot diverge. TestMain-equivalence is enforced by main_test.go, which builds BOTH entry points and asserts identical stdout and exit codes for representative invocations.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gseer
command
Package main is the entry point for the single `gseer` binary.
|
Package main is the entry point for the single `gseer` binary. |
|
gseer-release
command
gseer-release — the maintainer-side companion of the v0.1.0 signed update system (docs/UPDATE.md):
|
gseer-release — the maintainer-side companion of the v0.1.0 signed update system (docs/UPDATE.md): |
|
Package deploy embeds the Rev 6.7.2 hardened-deployment SQL artifacts (M-A materialization) so the gseer binary can execute them itself (M-B bootstrap/grants, M-C audit gate) while the same byte-identical files stay available for manual psql-based deployments.
|
Package deploy embeds the Rev 6.7.2 hardened-deployment SQL artifacts (M-A materialization) so the gseer binary can execute them itself (M-B bootstrap/grants, M-C audit gate) while the same byte-identical files stay available for manual psql-based deployments. |
|
internal
|
|
|
api
Package api implements the chi v5 HTTP routes for /api/v1 (SPEC-07) and the OpenAPI 3.1 source-of-truth with a CI route diff.
|
Package api implements the chi v5 HTTP routes for /api/v1 (SPEC-07) and the OpenAPI 3.1 source-of-truth with a CI route diff. |
|
cli
Package cli implements the `gseer` command tree (SPEC-03).
|
Package cli implements the `gseer` command tree (SPEC-03). |
|
collect
Package collect is the FIRST-PARTY PASSIVE data connector architecture (v0.0.2, milestones M14/M15, owner directive §2).
|
Package collect is the FIRST-PARTY PASSIVE data connector architecture (v0.0.2, milestones M14/M15, owner directive §2). |
|
config
Package config implements YAML configuration loading, environment- variable overlay, CLI flag precedence, strict schema validation, and actionable E_* errors for the GSEER v0.0.1 binary (SPEC-03 §5, §7).
|
Package config implements YAML configuration loading, environment- variable overlay, CLI flag precedence, strict schema validation, and actionable E_* errors for the GSEER v0.0.1 binary (SPEC-03 §5, §7). |
|
dashboard
Package dashboard is the server-rendered web UI (AC-4.9 third surface).
|
Package dashboard is the server-rendered web UI (AC-4.9 third surface). |
|
export
Package export streams search results as JSON, CSV, or NDJSON (v0.1.0, owner directive §4).
|
Package export streams search results as JSON, CSV, or NDJSON (v0.1.0, owner directive §4). |
|
fixture
Package fixture implements the labeled synthetic dataset (SPEC-04 §9) and the banner constant shared by CLI/API/Dashboard.
|
Package fixture implements the labeled synthetic dataset (SPEC-04 §9) and the banner constant shared by CLI/API/Dashboard. |
|
fprule
Package fprule implements the v0.1.0 fingerprint rule engine: a versioned, lint-checked rule collection that classifies technology evidence ALREADY OBSERVED into products with confidence.
|
Package fprule implements the v0.1.0 fingerprint rule engine: a versioned, lint-checked rule collection that classifies technology evidence ALREADY OBSERVED into products with confidence. |
|
gql
Package gql contains the GSEER Query Language implementation: lexer → parser → ast → validator → planner (SPEC-04).
|
Package gql contains the GSEER Query Language implementation: lexer → parser → ast → validator → planner (SPEC-04). |
|
gql/ast
Package ast holds the typed GQL tree + visitor + explain rendering (SPEC-04 §4).
|
Package ast holds the typed GQL tree + visitor + explain rendering (SPEC-04 §4). |
|
gql/lexer
Package lexer is the GQL token stream producer (SPEC-04 §2–3).
|
Package lexer is the GQL token stream producer (SPEC-04 §2–3). |
|
gql/parser
Package parser is the recursive-descent GQL parser (SPEC-04 §3 EBNF).
|
Package parser is the recursive-descent GQL parser (SPEC-04 §3 EBNF). |
|
gql/planner
Package planner compiles the validated GQL AST to parameterized PostgreSQL SQL against the search_index union view (SPEC-04 §6, §8).
|
Package planner compiles the validated GQL AST to parameterized PostgreSQL SQL against the search_index union view (SPEC-04 §6, §8). |
|
gql/plannersqlite
Package plannersqlite lowers a validated GQL AST to parameterized SQL for the SQLite personal-mode engine (database/sql + modernc driver).
|
Package plannersqlite lowers a validated GQL AST to parameterized SQL for the SQLite personal-mode engine (database/sql + modernc driver). |
|
gql/validator
Package validator is the GQL semantic validator (SPEC-04 §5, §7).
|
Package validator is the GQL semantic validator (SPEC-04 §5, §7). |
|
httpx
Package httpx holds the HTTP hardening shared by GSEER's two web surfaces (REST API + dashboard): security response headers and trusted-proxy client-IP resolution (v0.0.2 M16 security review).
|
Package httpx holds the HTTP hardening shared by GSEER's two web surfaces (REST API + dashboard): security response headers and trusted-proxy client-IP resolution (v0.0.2 M16 security review). |
|
search
Package search implements the SearchService: validate → plan → execute → shape, applying the mode filter (default: service, PD-1) with no mode semantics in any caller (RS-3, SPEC-04).
|
Package search implements the SearchService: validate → plan → execute → shape, applying the mode filter (default: service, PD-1) with no mode semantics in any caller (RS-3, SPEC-04). |
|
storage
Package storage contains the GSEER persistence layer.
|
Package storage contains the GSEER persistence layer. |
|
storage/migrations
Package migrations embeds the GSEER SQL migration files so the compiled binary is self-contained (no runtime file-path lookup).
|
Package migrations embeds the GSEER SQL migration files so the compiled binary is self-contained (no runtime file-path lookup). |
|
storage/postgres
Package postgres is the PostgreSQL adapter under internal/storage.
|
Package postgres is the PostgreSQL adapter under internal/storage. |
|
suppress
Package suppress is the centralized suppression policy layer (v0.0.2 Passive Intelligence, milestone M13, owner directive §3).
|
Package suppress is the centralized suppression policy layer (v0.0.2 Passive Intelligence, milestone M13, owner directive §3). |
|
update
Package update implements the v0.1.0 signed update system (owner directive §5).
|
Package update implements the v0.1.0 signed update system (owner directive §5). |
|
version
Package version exposes build-time metadata injected via -ldflags.
|
Package version exposes build-time metadata injected via -ldflags. |
