Documentation
¶
Index ¶
- type AnalyticsHandler
- func (h *AnalyticsHandler) Bridges(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) Coverage(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) Kinds(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) Languages(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) LayerSymbols(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) Layers(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) Sources(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) Stats(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) Summary(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) TopByInDegree(w http.ResponseWriter, r *http.Request)
- func (h *AnalyticsHandler) TopByPageRank(w http.ResponseWriter, r *http.Request)
- type HealthHandler
- type IndexRunHandler
- type OracleHandler
- type ProjectHandler
- func (h *ProjectHandler) Create(w http.ResponseWriter, r *http.Request)
- func (h *ProjectHandler) Delete(w http.ResponseWriter, r *http.Request)
- func (h *ProjectHandler) Get(w http.ResponseWriter, r *http.Request)
- func (h *ProjectHandler) List(w http.ResponseWriter, r *http.Request)
- func (h *ProjectHandler) Update(w http.ResponseWriter, r *http.Request)
- type SearchHandler
- type SourceHandler
- type SymbolHandler
- func (h *SymbolHandler) ColumnLineage(w http.ResponseWriter, r *http.Request)
- func (h *SymbolHandler) Get(w http.ResponseWriter, r *http.Request)
- func (h *SymbolHandler) Impact(w http.ResponseWriter, r *http.Request)
- func (h *SymbolHandler) Lineage(w http.ResponseWriter, r *http.Request)
- func (h *SymbolHandler) References(w http.ResponseWriter, r *http.Request)
- func (h *SymbolHandler) Search(w http.ResponseWriter, r *http.Request)
- func (h *SymbolHandler) SearchGlobal(w http.ResponseWriter, r *http.Request)
- type UploadHandler
- type WebhookHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsHandler ¶
type AnalyticsHandler struct {
// contains filtered or unexported fields
}
AnalyticsHandler serves project analytics endpoints.
func NewAnalyticsHandler ¶
func NewAnalyticsHandler(logger *slog.Logger, s *store.Store) *AnalyticsHandler
func (*AnalyticsHandler) Bridges ¶
func (h *AnalyticsHandler) Bridges(w http.ResponseWriter, r *http.Request)
Bridges returns cross-language edge summary. GET /projects/{slug}/analytics/bridges
func (*AnalyticsHandler) Coverage ¶
func (h *AnalyticsHandler) Coverage(w http.ResponseWriter, r *http.Request)
Coverage returns parser coverage per source (total files vs parsed files). GET /projects/{slug}/analytics/coverage
func (*AnalyticsHandler) Kinds ¶
func (h *AnalyticsHandler) Kinds(w http.ResponseWriter, r *http.Request)
Kinds returns symbol counts grouped by kind. GET /projects/{slug}/analytics/kinds
func (*AnalyticsHandler) Languages ¶
func (h *AnalyticsHandler) Languages(w http.ResponseWriter, r *http.Request)
Languages returns symbol counts grouped by language. GET /projects/{slug}/analytics/languages
func (*AnalyticsHandler) LayerSymbols ¶
func (h *AnalyticsHandler) LayerSymbols(w http.ResponseWriter, r *http.Request)
LayerSymbols returns paginated symbols for a specific layer. GET /projects/{slug}/analytics/layers/{layer}?limit=20&offset=0
func (*AnalyticsHandler) Layers ¶
func (h *AnalyticsHandler) Layers(w http.ResponseWriter, r *http.Request)
Layers returns symbol counts grouped by architectural layer. GET /projects/{slug}/analytics/layers
func (*AnalyticsHandler) Sources ¶
func (h *AnalyticsHandler) Sources(w http.ResponseWriter, r *http.Request)
Sources returns per-source symbol stats. GET /projects/{slug}/analytics/sources
func (*AnalyticsHandler) Stats ¶
func (h *AnalyticsHandler) Stats(w http.ResponseWriter, r *http.Request)
Stats returns aggregate symbol/file/language/kind counts. GET /projects/{slug}/analytics/stats
func (*AnalyticsHandler) Summary ¶
func (h *AnalyticsHandler) Summary(w http.ResponseWriter, r *http.Request)
Summary returns the full project analytics JSON + summary text. GET /projects/{slug}/analytics/summary
func (*AnalyticsHandler) TopByInDegree ¶
func (h *AnalyticsHandler) TopByInDegree(w http.ResponseWriter, r *http.Request)
TopByInDegree returns the top-N most depended-upon symbols. GET /projects/{slug}/analytics/top/in-degree?limit=10
func (*AnalyticsHandler) TopByPageRank ¶
func (h *AnalyticsHandler) TopByPageRank(w http.ResponseWriter, r *http.Request)
TopByPageRank returns the top-N highest centrality symbols. GET /projects/{slug}/analytics/top/pagerank?limit=10
type HealthHandler ¶
type HealthHandler struct {
// contains filtered or unexported fields
}
func NewHealthHandler ¶
func NewHealthHandler(pool *pgxpool.Pool) *HealthHandler
func (*HealthHandler) Healthz ¶
func (h *HealthHandler) Healthz(w http.ResponseWriter, r *http.Request)
func (*HealthHandler) Readyz ¶
func (h *HealthHandler) Readyz(w http.ResponseWriter, r *http.Request)
type IndexRunHandler ¶
type IndexRunHandler struct {
// contains filtered or unexported fields
}
func NewIndexRunHandler ¶
func (*IndexRunHandler) Get ¶
func (h *IndexRunHandler) Get(w http.ResponseWriter, r *http.Request)
func (*IndexRunHandler) List ¶
func (h *IndexRunHandler) List(w http.ResponseWriter, r *http.Request)
func (*IndexRunHandler) Trigger ¶
func (h *IndexRunHandler) Trigger(w http.ResponseWriter, r *http.Request)
type OracleHandler ¶
type OracleHandler struct {
// contains filtered or unexported fields
}
OracleHandler serves the Oracle chat endpoint.
func NewOracleHandler ¶
func NewOracleHandler(logger *slog.Logger, engine *oracle.Engine) *OracleHandler
NewOracleHandler creates a new OracleHandler.
func (*OracleHandler) Ask ¶
func (h *OracleHandler) Ask(w http.ResponseWriter, r *http.Request)
Ask handles POST /projects/{slug}/oracle
type ProjectHandler ¶
type ProjectHandler struct {
// contains filtered or unexported fields
}
func NewProjectHandler ¶
func NewProjectHandler(logger *slog.Logger, s *store.Store) *ProjectHandler
func (*ProjectHandler) Create ¶
func (h *ProjectHandler) Create(w http.ResponseWriter, r *http.Request)
func (*ProjectHandler) Delete ¶
func (h *ProjectHandler) Delete(w http.ResponseWriter, r *http.Request)
func (*ProjectHandler) Get ¶
func (h *ProjectHandler) Get(w http.ResponseWriter, r *http.Request)
func (*ProjectHandler) List ¶
func (h *ProjectHandler) List(w http.ResponseWriter, r *http.Request)
func (*ProjectHandler) Update ¶
func (h *ProjectHandler) Update(w http.ResponseWriter, r *http.Request)
type SearchHandler ¶
type SearchHandler struct {
// contains filtered or unexported fields
}
func NewSearchHandler ¶
func (*SearchHandler) Semantic ¶
func (h *SearchHandler) Semantic(w http.ResponseWriter, r *http.Request)
Semantic performs semantic search using vector embeddings. POST /projects/{slug}/search/semantic
type SourceHandler ¶
type SourceHandler struct {
// contains filtered or unexported fields
}
func NewSourceHandler ¶
func NewSourceHandler(logger *slog.Logger, s *store.Store) *SourceHandler
func (*SourceHandler) Create ¶
func (h *SourceHandler) Create(w http.ResponseWriter, r *http.Request)
func (*SourceHandler) Delete ¶
func (h *SourceHandler) Delete(w http.ResponseWriter, r *http.Request)
func (*SourceHandler) Get ¶
func (h *SourceHandler) Get(w http.ResponseWriter, r *http.Request)
func (*SourceHandler) List ¶
func (h *SourceHandler) List(w http.ResponseWriter, r *http.Request)
type SymbolHandler ¶
type SymbolHandler struct {
// contains filtered or unexported fields
}
func NewSymbolHandler ¶
func (*SymbolHandler) ColumnLineage ¶
func (h *SymbolHandler) ColumnLineage(w http.ResponseWriter, r *http.Request)
ColumnLineage returns column-level lineage for a symbol. GET /symbols/{id}/column-lineage?direction=both&max_depth=5
func (*SymbolHandler) Get ¶
func (h *SymbolHandler) Get(w http.ResponseWriter, r *http.Request)
Get returns a single symbol by ID. GET /symbols/{id}
func (*SymbolHandler) Impact ¶
func (h *SymbolHandler) Impact(w http.ResponseWriter, r *http.Request)
Impact returns downstream impact of changing a symbol. GET /symbols/{id}/impact?max_depth=5&change_type=modify
func (*SymbolHandler) Lineage ¶
func (h *SymbolHandler) Lineage(w http.ResponseWriter, r *http.Request)
Lineage returns the lineage graph for a symbol via Neo4j. GET /symbols/{id}/lineage?direction=upstream|downstream|both&max_depth=3
func (*SymbolHandler) References ¶
func (h *SymbolHandler) References(w http.ResponseWriter, r *http.Request)
References returns incoming/outgoing edges for a symbol. GET /symbols/{id}/references?direction=incoming|outgoing|both
func (*SymbolHandler) Search ¶
func (h *SymbolHandler) Search(w http.ResponseWriter, r *http.Request)
Search finds symbols matching a query within a project. GET /projects/{slug}/symbols?q=...&kind=...&limit=...
func (*SymbolHandler) SearchGlobal ¶
func (h *SymbolHandler) SearchGlobal(w http.ResponseWriter, r *http.Request)
SearchGlobal finds symbols matching a query across all projects. GET /symbols/search?q=...&kind=...&language=...&limit=20
type UploadHandler ¶
type UploadHandler struct {
// contains filtered or unexported fields
}
func NewUploadHandler ¶
func NewUploadHandler(logger *slog.Logger, s *store.Store, minio *minioclient.Client, producer *ingestion.Producer) *UploadHandler
func (*UploadHandler) Upload ¶
func (h *UploadHandler) Upload(w http.ResponseWriter, r *http.Request)
type WebhookHandler ¶
type WebhookHandler struct {
// contains filtered or unexported fields
}
func NewWebhookHandler ¶
func (*WebhookHandler) GitLabPush ¶
func (h *WebhookHandler) GitLabPush(w http.ResponseWriter, r *http.Request)
GitLabPush handles POST /api/v1/webhooks/gitlab/{sourceID}