MCPcopy Create free account

hub / github.com/assetnote/hyoketsu / functions

Functions114 in github.com/assetnote/hyoketsu

↓ 46 callersMethodClose
()
db/store.go:64
↓ 22 callersMethodClose
()
server/clickhouse.go:42
↓ 14 callersFunctionflushBatch
(ctx context.Context, ch *CHStore, table string, batch [][]interface{}, total int)
server/import.go:19
↓ 9 callersFunctionOpen
(path string)
db/store.go:35
↓ 9 callersFunctiongetDBPath
()
cmd/root.go:34
↓ 8 callersMethodRead
(p []byte)
cmd/download.go:97
↓ 5 callersMethodLookup
(dllName string, fileType string)
db/store.go:144
↓ 5 callersFunctionstreamJSONLFile
(path string, fn func(db.DLLMatch))
cmd/importcmd.go:144
↓ 4 callersMethodInsertDLLBatch
(entries []DLLMatch)
db/store.go:110
↓ 4 callersMethodTotalCount
()
db/store.go:348
↓ 4 callersFunctionprintNugetPipeline
printNugetPipeline prints a visual pipeline status after a NuGet step completes. completedStep is 1-indexed (1 = update done, 2 = hash-backfill done,
cmd/pipeline.go:21
↓ 4 callersFunctionreadAt
(r io.ReaderAt, offset int64, buf []byte)
pe/pe.go:99
↓ 4 callersFunctionscanMatches
(rows *sql.Rows)
db/store.go:291
↓ 4 callersFunctiontableForType
(fileType string)
db/store.go:103
↓ 3 callersFunctionNewClient
(store *db.Store, workers int)
nuget/client.go:74
↓ 3 callersFunctioncleanPath
cleanPath strips stray double-quotes and normalises separators on Windows. PowerShell wraps space-containing paths in double-quotes when invoking a na
cmd/root.go:29
↓ 3 callersMethodfetchJSON
(url string, v interface{})
nuget/client.go:129
↓ 2 callersFunctionCollectFiles
(target string)
scanner/scanner.go:37
↓ 2 callersMethodCrawl
Crawl downloads the entire NuGet catalog and writes DLL entries as JSONL files. Phase 1: download all page JSONs in parallel to collect leaf URLs. Pha
nuget/client.go:153
↓ 2 callersFunctionDefaultDBPath
()
db/store.go:30
↓ 2 callersMethodGetCursor
()
db/store.go:359
↓ 2 callersFunctionHashFile
(f *FileInfo)
scanner/scanner.go:92
↓ 2 callersMethodInsertJARBatch
(entries []DLLMatch)
db/store.go:114
↓ 2 callersFunctionScan
(store *db.Store, target string)
scanner/scanner.go:138
↓ 2 callersFunctionbackoffDuration
(attempt int)
nuget/client.go:123
↓ 2 callersFunctiondisplayResults
(results []scanner.Result)
cmd/scan.go:166
↓ 2 callersMethoddoRequest
(req *http.Request)
nuget/client.go:90
↓ 2 callersFunctiondownloadDatabase
(dbPath string)
cmd/download.go:44
↓ 2 callersFunctionfetchRemoteDBDate
()
cmd/download.go:18
↓ 2 callersMethodinsertBatch
(table string, entries []DLLMatch)
db/store.go:118
↓ 2 callersFunctionnullIfEmpty
(s string)
db/store.go:137
↓ 2 callersFunctionpickBest
(matches []db.DLLMatch)
scanner/scanner.go:259
↓ 2 callersFunctionreadJSONL
(path string)
nuget/client.go:455
↓ 2 callersFunctionrunMavenCrawl
(store *db.Store)
cmd/update.go:79
↓ 2 callersFunctionrunNugetCrawl
(store *db.Store, client *nuget.Client)
cmd/update.go:92
↓ 2 callersFunctionrunNugetHash
(client *nuget.Client)
cmd/update.go:117
↓ 2 callersFunctionrunNugetImport
(store *db.Store)
cmd/importcmd.go:35
↓ 2 callersFunctionrvaToOffset
(rva uint32, sections []sectionHeader)
pe/pe.go:90
↓ 2 callersFunctionwriteDLLMatchJSONL
--- helpers ---
cmd/cmd_test.go:316
↓ 2 callersFunctionwriteJSONL
(path string, entries []db.DLLMatch)
nuget/client.go:314
↓ 1 callersMethodBatchLookupByHash
BatchLookupByHash looks up multiple hashes at once, returning a map from hash to matches.
db/store.go:169
↓ 1 callersMethodBatchLookupByName
BatchLookupByName looks up multiple filenames at once, returning a map from name to matches.
db/store.go:208
↓ 1 callersMethodBeginBulkImport
BeginBulkImport sets PRAGMAs for fast bulk inserts. Call EndBulkImport when done.
db/store.go:69
↓ 1 callersMethodBulkLookup
BulkLookup does a two-phase lookup: first by hash, then by filename for unmatched. Requests are split by type so each query hits the appropriate table
server/clickhouse.go:75
↓ 1 callersMethodCreateSchema
(ctx context.Context)
server/clickhouse.go:46
↓ 1 callersMethodEndBulkImport
EndBulkImport restores safe PRAGMAs after bulk insert.
db/store.go:83
↓ 1 callersFunctionExecute
()
cmd/root.go:19
↓ 1 callersMethodGetCursorKey
(key string)
db/store.go:367
↓ 1 callersMethodHashBackfill
HashBackfill reads crawl JSONL files, downloads nupkgs, hashes DLLs, writes to outDir.
nuget/client.go:357
↓ 1 callersFunctionHashFileSHA1
(path string)
hasher/hasher.go:11
↓ 1 callersFunctionHashFileSHA256
(path string)
hasher/hasher.go:24
↓ 1 callersMethodIsFileImported
IsFileImported checks if a JSONL file has already been imported.
db/store.go:89
↓ 1 callersFunctionIsMicrosoftToken
(token string)
pe/pe.go:78
↓ 1 callersFunctionIsNETAssembly
IsNETAssembly checks if a PE file is a .NET assembly by looking for a non-zero CLR Runtime Header data directory entry.
pe/pe.go:14
↓ 1 callersMethodLookupByHash
(hash string, fileType string)
db/store.go:156
↓ 1 callersMethodMarkFileImported
MarkFileImported records that a JSONL file has been imported.
db/store.go:96
↓ 1 callersFunctionMigrate
(db *sql.DB)
db/schema.go:39
↓ 1 callersFunctionNewCHStore
(dsn string)
server/clickhouse.go:30
↓ 1 callersFunctionNewClient
(store *db.Store)
maven/client.go:26
↓ 1 callersFunctionPublicKeyToken
PublicKeyToken extracts the public key token from a .NET assembly. Returns empty string if the assembly has no public key.
pe/pe.go:106
↓ 1 callersMethodSetCursor
(cursor string)
db/store.go:363
↓ 1 callersMethodSetCursorKey
(key, value string)
db/store.go:376
↓ 1 callersMethodStats
(ctx context.Context)
server/clickhouse.go:269
↓ 1 callersMethodStats
()
db/store.go:313
↓ 1 callersFunctionbuildFromScratch
()
cmd/update.go:45
↓ 1 callersFunctioncollectSingle
(target string)
scanner/scanner.go:77
↓ 1 callersFunctioncopyFile
(src, dst string)
cmd/extract.go:83
↓ 1 callersFunctiondecodeCompressedUint
(data []byte)
pe/pe.go:341
↓ 1 callersMethoddownloadIndex
(progress func(count int))
maven/client.go:44
↓ 1 callersFunctiondownloadRemoteDB
()
cmd/update.go:32
↓ 1 callersFunctionensureDatabase
()
cmd/scan.go:258
↓ 1 callersMethodextractDLLsFromLeaf
(leafURL, packageID string)
nuget/client.go:327
↓ 1 callersFunctionhashFilesParallel
hashFilesParallel hashes all files using a worker pool.
scanner/scanner.go:110
↓ 1 callersMethodhashPackageDLLs
(packageID, version string)
nuget/client.go:473
↓ 1 callersFunctionhashZipEntry
(f *zip.File)
nuget/client.go:524
↓ 1 callersFunctionimportFromSQLite
(ctx context.Context, ch *CHStore, sqlitePath string)
server/import.go:48
↓ 1 callersFunctionimportNuGetData
importNuGetData loads hash data into a map, then imports crawl entries with hashes merged in. NuGet data always goes to known_dlls.
server/import.go:212
↓ 1 callersMethodparseIndex
(path string, progress func(count int))
maven/client.go:102
↓ 1 callersMethodqueryByFilenames
(ctx context.Context, table string, filenames []string)
server/clickhouse.go:187
↓ 1 callersMethodqueryByHashes
(ctx context.Context, table string, hashes []string)
server/clickhouse.go:228
↓ 1 callersFunctionreadString2
(r io.Reader)
maven/client.go:243
↓ 1 callersFunctionreadString4
(r io.Reader)
maven/client.go:255
↓ 1 callersFunctionremoteLookup
(files []remoteLookupFile)
cmd/scan.go:88
↓ 1 callersFunctionscanLocal
(target string)
cmd/scan.go:41
↓ 1 callersFunctionscanRemote
(target string)
cmd/scan.go:113
↓ 1 callersFunctiontableRowSize
(tableIdx int, rowCounts []uint32, strSize, guidSize, blobSize int)
pe/pe.go:364
MethodCrawl
Crawl downloads the Maven Central Lucene index and parses it directly. Each record with a JAR packaging and SHA1 hash is inserted into the DB.
maven/client.go:32
MethodHasPackageVersion
HasPackageVersion checks if we already have entries for a given package+version.
db/store.go:246
MethodNuGetPackagesWithoutHash
()
db/store.go:259
FunctionTestCommandGrouping
--- 1. Command grouping ---
cmd/cmd_test.go:14
FunctionTestCrawlNugetWorkersFlag
--- 6. Workers flags on individual commands ---
cmd/cmd_test.go:270
FunctionTestGroupTitles
(t *testing.T)
cmd/cmd_test.go:59
FunctionTestHashBackfillWorkersFlag
(t *testing.T)
cmd/cmd_test.go:280
FunctionTestNugetPathConstants
--- 3. Data path constants ---
cmd/cmd_test.go:98
FunctionTestNugetPipelineSteps
--- 7. Pipeline steps ---
cmd/cmd_test.go:292
FunctionTestRunNugetImport
--- 5. runNugetImport with real SQLite ---
cmd/cmd_test.go:175
FunctionTestStatsInAdditionalCommands
(t *testing.T)
cmd/cmd_test.go:47
FunctionTestStreamJSONLFile
--- 4. streamJSONLFile ---
cmd/cmd_test.go:109
FunctionTestStreamJSONLFileEmpty
(t *testing.T)
cmd/cmd_test.go:156
FunctionTestStreamJSONLFileNotFound
(t *testing.T)
cmd/cmd_test.go:149
next →1–100 of 114, ranked by callers