Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/assetnote/hyoketsu
/ functions
Functions
114 in github.com/assetnote/hyoketsu
⨍
Functions
114
◇
Types & classes
28
↓ 46 callers
Method
Close
()
db/store.go:64
↓ 22 callers
Method
Close
()
server/clickhouse.go:42
↓ 14 callers
Function
flushBatch
(ctx context.Context, ch *CHStore, table string, batch [][]interface{}, total int)
server/import.go:19
↓ 9 callers
Function
Open
(path string)
db/store.go:35
↓ 9 callers
Function
getDBPath
()
cmd/root.go:34
↓ 8 callers
Method
Read
(p []byte)
cmd/download.go:97
↓ 5 callers
Method
Lookup
(dllName string, fileType string)
db/store.go:144
↓ 5 callers
Function
streamJSONLFile
(path string, fn func(db.DLLMatch))
cmd/importcmd.go:144
↓ 4 callers
Method
InsertDLLBatch
(entries []DLLMatch)
db/store.go:110
↓ 4 callers
Method
TotalCount
()
db/store.go:348
↓ 4 callers
Function
printNugetPipeline
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 callers
Function
readAt
(r io.ReaderAt, offset int64, buf []byte)
pe/pe.go:99
↓ 4 callers
Function
scanMatches
(rows *sql.Rows)
db/store.go:291
↓ 4 callers
Function
tableForType
(fileType string)
db/store.go:103
↓ 3 callers
Function
NewClient
(store *db.Store, workers int)
nuget/client.go:74
↓ 3 callers
Function
cleanPath
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 callers
Method
fetchJSON
(url string, v interface{})
nuget/client.go:129
↓ 2 callers
Function
CollectFiles
(target string)
scanner/scanner.go:37
↓ 2 callers
Method
Crawl
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 callers
Function
DefaultDBPath
()
db/store.go:30
↓ 2 callers
Method
GetCursor
()
db/store.go:359
↓ 2 callers
Function
HashFile
(f *FileInfo)
scanner/scanner.go:92
↓ 2 callers
Method
InsertJARBatch
(entries []DLLMatch)
db/store.go:114
↓ 2 callers
Function
Scan
(store *db.Store, target string)
scanner/scanner.go:138
↓ 2 callers
Function
backoffDuration
(attempt int)
nuget/client.go:123
↓ 2 callers
Function
displayResults
(results []scanner.Result)
cmd/scan.go:166
↓ 2 callers
Method
doRequest
(req *http.Request)
nuget/client.go:90
↓ 2 callers
Function
downloadDatabase
(dbPath string)
cmd/download.go:44
↓ 2 callers
Function
fetchRemoteDBDate
()
cmd/download.go:18
↓ 2 callers
Method
insertBatch
(table string, entries []DLLMatch)
db/store.go:118
↓ 2 callers
Function
nullIfEmpty
(s string)
db/store.go:137
↓ 2 callers
Function
pickBest
(matches []db.DLLMatch)
scanner/scanner.go:259
↓ 2 callers
Function
readJSONL
(path string)
nuget/client.go:455
↓ 2 callers
Function
runMavenCrawl
(store *db.Store)
cmd/update.go:79
↓ 2 callers
Function
runNugetCrawl
(store *db.Store, client *nuget.Client)
cmd/update.go:92
↓ 2 callers
Function
runNugetHash
(client *nuget.Client)
cmd/update.go:117
↓ 2 callers
Function
runNugetImport
(store *db.Store)
cmd/importcmd.go:35
↓ 2 callers
Function
rvaToOffset
(rva uint32, sections []sectionHeader)
pe/pe.go:90
↓ 2 callers
Function
writeDLLMatchJSONL
--- helpers ---
cmd/cmd_test.go:316
↓ 2 callers
Function
writeJSONL
(path string, entries []db.DLLMatch)
nuget/client.go:314
↓ 1 callers
Method
BatchLookupByHash
BatchLookupByHash looks up multiple hashes at once, returning a map from hash to matches.
db/store.go:169
↓ 1 callers
Method
BatchLookupByName
BatchLookupByName looks up multiple filenames at once, returning a map from name to matches.
db/store.go:208
↓ 1 callers
Method
BeginBulkImport
BeginBulkImport sets PRAGMAs for fast bulk inserts. Call EndBulkImport when done.
db/store.go:69
↓ 1 callers
Method
BulkLookup
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 callers
Method
CreateSchema
(ctx context.Context)
server/clickhouse.go:46
↓ 1 callers
Method
EndBulkImport
EndBulkImport restores safe PRAGMAs after bulk insert.
db/store.go:83
↓ 1 callers
Function
Execute
()
cmd/root.go:19
↓ 1 callers
Method
GetCursorKey
(key string)
db/store.go:367
↓ 1 callers
Method
HashBackfill
HashBackfill reads crawl JSONL files, downloads nupkgs, hashes DLLs, writes to outDir.
nuget/client.go:357
↓ 1 callers
Function
HashFileSHA1
(path string)
hasher/hasher.go:11
↓ 1 callers
Function
HashFileSHA256
(path string)
hasher/hasher.go:24
↓ 1 callers
Method
IsFileImported
IsFileImported checks if a JSONL file has already been imported.
db/store.go:89
↓ 1 callers
Function
IsMicrosoftToken
(token string)
pe/pe.go:78
↓ 1 callers
Function
IsNETAssembly
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 callers
Method
LookupByHash
(hash string, fileType string)
db/store.go:156
↓ 1 callers
Method
MarkFileImported
MarkFileImported records that a JSONL file has been imported.
db/store.go:96
↓ 1 callers
Function
Migrate
(db *sql.DB)
db/schema.go:39
↓ 1 callers
Function
NewCHStore
(dsn string)
server/clickhouse.go:30
↓ 1 callers
Function
NewClient
(store *db.Store)
maven/client.go:26
↓ 1 callers
Function
PublicKeyToken
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 callers
Method
SetCursor
(cursor string)
db/store.go:363
↓ 1 callers
Method
SetCursorKey
(key, value string)
db/store.go:376
↓ 1 callers
Method
Stats
(ctx context.Context)
server/clickhouse.go:269
↓ 1 callers
Method
Stats
()
db/store.go:313
↓ 1 callers
Function
buildFromScratch
()
cmd/update.go:45
↓ 1 callers
Function
collectSingle
(target string)
scanner/scanner.go:77
↓ 1 callers
Function
copyFile
(src, dst string)
cmd/extract.go:83
↓ 1 callers
Function
decodeCompressedUint
(data []byte)
pe/pe.go:341
↓ 1 callers
Method
downloadIndex
(progress func(count int))
maven/client.go:44
↓ 1 callers
Function
downloadRemoteDB
()
cmd/update.go:32
↓ 1 callers
Function
ensureDatabase
()
cmd/scan.go:258
↓ 1 callers
Method
extractDLLsFromLeaf
(leafURL, packageID string)
nuget/client.go:327
↓ 1 callers
Function
hashFilesParallel
hashFilesParallel hashes all files using a worker pool.
scanner/scanner.go:110
↓ 1 callers
Method
hashPackageDLLs
(packageID, version string)
nuget/client.go:473
↓ 1 callers
Function
hashZipEntry
(f *zip.File)
nuget/client.go:524
↓ 1 callers
Function
importFromSQLite
(ctx context.Context, ch *CHStore, sqlitePath string)
server/import.go:48
↓ 1 callers
Function
importNuGetData
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 callers
Method
parseIndex
(path string, progress func(count int))
maven/client.go:102
↓ 1 callers
Method
queryByFilenames
(ctx context.Context, table string, filenames []string)
server/clickhouse.go:187
↓ 1 callers
Method
queryByHashes
(ctx context.Context, table string, hashes []string)
server/clickhouse.go:228
↓ 1 callers
Function
readString2
(r io.Reader)
maven/client.go:243
↓ 1 callers
Function
readString4
(r io.Reader)
maven/client.go:255
↓ 1 callers
Function
remoteLookup
(files []remoteLookupFile)
cmd/scan.go:88
↓ 1 callers
Function
scanLocal
(target string)
cmd/scan.go:41
↓ 1 callers
Function
scanRemote
(target string)
cmd/scan.go:113
↓ 1 callers
Function
tableRowSize
(tableIdx int, rowCounts []uint32, strSize, guidSize, blobSize int)
pe/pe.go:364
Method
Crawl
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
Method
HasPackageVersion
HasPackageVersion checks if we already have entries for a given package+version.
db/store.go:246
Method
NuGetPackagesWithoutHash
()
db/store.go:259
Function
TestCommandGrouping
--- 1. Command grouping ---
cmd/cmd_test.go:14
Function
TestCrawlNugetWorkersFlag
--- 6. Workers flags on individual commands ---
cmd/cmd_test.go:270
Function
TestGroupTitles
(t *testing.T)
cmd/cmd_test.go:59
Function
TestHashBackfillWorkersFlag
(t *testing.T)
cmd/cmd_test.go:280
Function
TestNugetPathConstants
--- 3. Data path constants ---
cmd/cmd_test.go:98
Function
TestNugetPipelineSteps
--- 7. Pipeline steps ---
cmd/cmd_test.go:292
Function
TestRunNugetImport
--- 5. runNugetImport with real SQLite ---
cmd/cmd_test.go:175
Function
TestStatsInAdditionalCommands
(t *testing.T)
cmd/cmd_test.go:47
Function
TestStreamJSONLFile
--- 4. streamJSONLFile ---
cmd/cmd_test.go:109
Function
TestStreamJSONLFileEmpty
(t *testing.T)
cmd/cmd_test.go:156
Function
TestStreamJSONLFileNotFound
(t *testing.T)
cmd/cmd_test.go:149
next →
1–100 of 114, ranked by callers