{"modulePath":"github.com/helixml/kodit","version":"v1.4.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commit\n\n## Types\n\n```go\ntype Rescan struct {\n\t// contains filtered or unexported fields\n}\n```\nRescan handles the RESCAN\\_COMMIT task operation. It clears all existing data for a commit to prepare for a full re-scan and re-index.\n\n```go\nfunc NewRescan(\n\tenrichments *service.Enrichment,\n\tassociationStore enrichment.AssociationStore,\n\tcommitStore repository.CommitStore,\n\tfileStore repository.FileStore,\n\tstatusStore task.StatusStore,\n\ttrackerFactory handler.TrackerFactory,\n\tlogger zerolog.Logger,\n) *Rescan\n```\nNewRescan creates a new Rescan handler.\n\n```go\nfunc (h *Rescan) Execute(ctx context.Context, payload map[string]any) error\n```\nExecute processes the RESCAN\\_COMMIT task.\n\n```go\ntype Scan struct {\n\t// contains filtered or unexported fields\n}\n```\nScan handles the SCAN\\_COMMIT task operation. It scans a specific commit to extract its metadata and files.\n\n```go\nfunc NewScan(\n\trepoStore repository.RepositoryStore,\n\tcommitStore repository.CommitStore,\n\tfileStore repository.FileStore,\n\tscanner domainservice.Scanner,\n\ttrackerFactory handler.TrackerFactory,\n\tlogger zerolog.Logger,\n) *Scan\n```\nNewScan creates a new Scan handler.\n\n```go\nfunc (h *Scan) Execute(ctx context.Context, payload map[string]any) error\n```\nExecute processes the SCAN\\_COMMIT task.\n\n","path":"github.com/helixml/kodit/application/handler/commit","name":"commit","synopsis":"","isRedistributable":true}
