handler

package
v0.0.0-...-396e674 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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

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

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 NewIndexRunHandler(logger *slog.Logger, s *store.Store, producer *ingestion.Producer) *IndexRunHandler

func (*IndexRunHandler) Get

func (*IndexRunHandler) List

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

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 (*ProjectHandler) List

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 NewSearchHandler(logger *slog.Logger, s *store.Store, embed embedding.Embedder) *SearchHandler

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 (*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 NewSymbolHandler(logger *slog.Logger, s *store.Store, g *graph.Client, lin *lineage.Engine, imp *impact.Engine) *SymbolHandler

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

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 NewWebhookHandler(logger *slog.Logger, s *store.Store, producer *ingestion.Producer) *WebhookHandler

func (*WebhookHandler) GitLabPush

func (h *WebhookHandler) GitLabPush(w http.ResponseWriter, r *http.Request)

GitLabPush handles POST /api/v1/webhooks/gitlab/{sourceID}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL