MCPcopy Create free account

hub / github.com/sipcapture/homer / functions

Functions4,264 in github.com/sipcapture/homer

↓ 3 callersMethodrunCompaction
runCompaction performs a single compaction cycle. Instead of holding the catalog lock for the entire cycle (which can take minutes and block flush + q
src/writer/compaction.go:401
↓ 3 callersFunctionruntimeKeepalivePop
()
src/ui/public/game/websockets-doom.js:4494
↓ 3 callersFunctionruntimeKeepalivePush
()
src/ui/public/game/websockets-doom.js:4399
↓ 3 callersFunctionsafeSlice
(s string, lo, hi int)
src/coordinator/correlation_seed_test.go:298
↓ 3 callersFunctionscanAllSQLRows
(rows *sql.Rows)
src/node/node.go:365
↓ 3 callersMethodscanRowsToMaps
scanRowsToMaps converts sql.Rows to []map[string]interface{}
src/storage/ducklake/tiered_query.go:307
↓ 3 callersFunctionscanUserRow
scanUserRow converts a single row to User struct.
src/coordinator/services/user_service.go:291
↓ 3 callersFunctionscanUserSettingRows
(rows *sql.Rows)
src/coordinator/services/user_settings_service.go:243
↓ 3 callersFunctionscriptKey
scriptKey builds the canonical "<hepid>_<profile>" cache key. The profile is lowercased for case-insensitive lookup (handlers pass "call", migrations
src/scripting/correlation/engine.go:226
↓ 3 callersFunctionsecretProvider
secretProvider executes the CREATE SECRET produced by buildS3SecretSQL on a real DuckDB and returns the provider recorded in duckdb_secrets(). It skip
src/storage/ducklake/tiered_storage_test.go:24
↓ 3 callersMethodsendBatch
(data []byte)
src/remotelog/lineproto.go:128
↓ 3 callersMethodsendBulk
(packets []*decoder.HEP)
src/remotelog/elasticsearch.go:134
↓ 3 callersMethodserveUDP
serveUDP starts a high-performance UDP server using gnet
src/server/udp.go:161
↓ 3 callersMethodsessionCookieName
()
src/coordinator/handlers/auth_session_cookie.go:26
↓ 3 callersFunctionsetErrNo
(value)
src/ui/public/game/websockets-doom.js:1624
↓ 3 callersFunctionsetLetterbox
(element, topBottom, leftRight)
src/ui/public/game/websockets-doom.js:5890
↓ 3 callersFunctionsetValue
(ptr, value, type, noSafe)
src/ui/public/game/websockets-doom.js:363
↓ 3 callersFunctionsortByTimestampDesc
sortByTimestampDesc sorts results by timestamp column in descending order.
src/storage/ducklake/timetravel.go:538
↓ 3 callersFunctionsortRowsByTimestampDescLimit
sortRowsByTimestampDescLimit orders rows newest-first by their timestamp and trims to limit. Used to restore ordering after the "stream" strategy drop
src/node/node.go:618
↓ 3 callersFunctionsplitCommaInt
(str string)
src/utils/metrics/sip_metrics.go:539
↓ 3 callersFunctionsplitSearchTimeRange
splitSearchTimeRange slices [fromMs, toMs] into chunks of at most chunkMs, ordered newest-first. Unbounded or small ranges yield a single chunk.
src/coordinator/handlers/transactions_v4.go:565
↓ 3 callersFunctionsqlFormMatchClauseAny
sqlFormMatchClauseAny ORs the same value across multiple column expressions.
src/coordinator/handlers/transactions_v4.go:62
↓ 3 callersFunctionsqlFormMatchClauseOr
sqlFormMatchClauseOr applies sqlFormMatchClause across two columns (OR).
src/coordinator/handlers/transactions_v4.go:53
↓ 3 callersFunctionstringFromAttrMap
stringFromAttrMap is a small helper for surfacing standard OTel resource attributes (service.name, host.name, …) as first-class columns without re-dec
src/storage/ducklake/otlp_storage.go:536
↓ 3 callersFunctiontableNameFromFQN
(table string)
src/cli/system_cmd.go:21
↓ 3 callersFunctiontoBoolValue
toBoolValue coerces whatever scalar the duckdb driver decides to hand back for an INTEGER/BOOLEAN-shaped column into a Go bool. History: previously o
src/coordinator/services/alias_service.go:361
↓ 3 callersFunctiontokenLooksLikeJWT
tokenLooksLikeJWT matches compact signed JWTs (header.payload.sig).
src/cli/api_client.go:77
↓ 3 callersFunctiontoolResultJSON
(v any)
src/mcp/mcp.go:274
↓ 3 callersFunctiontransportFromContentType
transportFromContentType maps the request Content-Type to one of the transport label values used in homer_otlp_* metrics.
src/otlpreceiver/http.go:123
↓ 3 callersMethodtryBuildVolumeUnionSQL
tryBuildVolumeUnionSQL builds SELECT ... UNION ALL ... across configured volumes for execution on the TieredStorageManager DuckDB (hot + cold catalogs
src/node/node.go:1148
↓ 3 callersMethodtryEnqueue
(signal string, job otlpJob)
src/otlpreceiver/sink/async_queue.go:101
↓ 3 callersMethodtryLLMSQL
tryLLMSQL asks the LLM (when enabled) to translate queryText into a single DuckDB SELECT. The returned string is empty when the LLM is disabled or the
src/coordinator/handlers/mcp_llm.go:232
↓ 3 callersFunctionuint32Chunk
(t uint16, v uint32)
src/cli/migrate_hep.go:138
↓ 3 callersFunctionuint8Chunk
(t uint16, v byte)
src/cli/migrate_hep.go:136
↓ 3 callersMethodwaitForServerStopBool
(ch chan bool, name string)
src/server/server.go:277
↓ 3 callersFunctionwithTimeZone
(opts: DateTimeFormatOptions, timeZone?: string)
src/ui/src/lib/datetime.ts:6
↓ 3 callersMethodworker
()
src/server/server.go:302
↓ 3 callersFunctionwriteI53ToI64
(ptr, num)
src/ui/public/game/websockets-doom.js:6477
↓ 3 callersMethodwriteResponse
writeResponse marshals resp using the same wire format as the request and writes a 200 OK. The OTLP spec requires the response to be the same content
src/otlpreceiver/http.go:193
↓ 3 callersFunctionzcFindURIBrackets
(val []byte)
src/sipparser/zerocopy.go:353
↓ 2 callersMethodAddHEP
AddHEP adds a HEP packet to the table's ring buffer
src/flight/hep_table.go:203
↓ 2 callersMethodAddHEP
AddHEP adds a HEP packet to the appropriate tables
src/flight/catalog.go:164
↓ 2 callersMethodArrowSchema
ArrowSchema returns the Arrow schema with optional column projection
src/flight/hep_table.go:83
↓ 2 callersMethodCachedIPAliasMap
CachedIPAliasMap returns a shared IPAliasMap for hot paths (search enrich). Rebuilds from ListActive at most every ipMapTTL; errors return (nil, err).
src/coordinator/services/alias_service.go:80
↓ 2 callersMethodCatalogLock
()
src/writer/compaction.go:139
↓ 2 callersMethodConnectAll
ConnectAll connects to all configured nodes. It retries a few times on startup to handle the case where the node module in the same process hasn't fin
src/coordinator/services/flight_service.go:78
↓ 2 callersMethodCreateMapping
(ctx context.Context, mapping MappingSchema)
src/coordinator/services/mapping_service.go:151
↓ 2 callersMethodCreateUser
CreateUser inserts a new user and returns the new ID
src/coordinator/services/user_service.go:192
↓ 2 callersFunctionEncode
Encode marshals the envelope to JSON. The error branch is unreachable for the fields we ship; kept for clarity at call sites.
src/coordinator/games/netchess/protocol.go:127
↓ 2 callersMethodEnsureOTLPSchema
EnsureOTLPSchema creates otlp_traces / otlp_metrics inside the configured DuckLake catalog if they do not already exist. Safe to call concurrently — t
src/storage/ducklake/otlp_storage.go:140
↓ 2 callersFunctionEnsureWriterS3Secret
EnsureWriterS3Secret creates a session-scoped DuckDB TYPE S3 secret so DuckLake internals hit the same endpoint as ApplyDuckDBS3ClientSettings. Call a
src/storage/ducklake/tuning.go:109
↓ 2 callersFunctionExtractFunctions
ExtractFunctions extracts function names from Lua code
src/scripting/scriptengine.go:97
↓ 2 callersFunctionFilterFromQuery
FilterFromQuery parses the subset of URL query parameters the HEP stream endpoint understands. It accepts: proto=1&proto=5 repeated OR-
src/stream/hepstream/filter.go:105
↓ 2 callersFunctionFilterKeys
FilterKeys returns only the keys specified in the comma-separated `fields` string. If keys is empty/nil, it derives them from items first. Only fields
src/cli/formatters.go:689
↓ 2 callersMethodFlush
Flush is a synchronous convenience wrapper: swap buffers and wait for the flush goroutine to finish the job. Used during Stop().
src/storage/ducklake/tables.go:720
↓ 2 callersFunctionGarbageLinesFor
GarbageLinesFor implements the classic "n-1" Tetris garbage rule with a Tetris bonus: a 4-line clear sends 4 garbage rows (instead of the bare-bones 3
src/coordinator/games/netris/protocol.go:110
↓ 2 callersMethodGet
(username string)
src/coordinator/handlers/auth_avatar_store.go:51
↓ 2 callersMethodGetCallID
GetCallID returns Call-ID as string (lazy conversion)
src/sipparser/fast_parser.go:508
↓ 2 callersMethodGetDashboard
(ctx context.Context, username, dashboardID string)
src/coordinator/services/dashboard_service.go:58
↓ 2 callersMethodGetMethod
GetMethod returns method as string (lazy conversion)
src/sipparser/fast_parser.go:516
↓ 2 callersMethodGetStats
GetStats returns connection statistics
src/coordinator/services/flight_service.go:342
↓ 2 callersMethodGetStats
GetStats returns table statistics across all volumes
src/node/catalog.go:475
↓ 2 callersMethodGetUserByID
GetUserByID retrieves a user by ID
src/coordinator/services/user_service.go:108
↓ 2 callersFunctionHasLimitToken
---- HasLimitToken --------------------------------------------------------- HasLimitToken checks if the SQL contains a LIMIT clause as a real token (
src/coordinator/sqlvalidator/validator.go:499
↓ 2 callersFunctionHash
Hash returns a bcrypt hash for a new password.
src/passwordhash/password.go:18
↓ 2 callersFunctionInitLoggerSimple
InitLoggerSimple initializes slog with simple settings.
src/utils/logging/logging.go:212
↓ 2 callersMethodInsert
Insert creates a new alert row (for integrations / POST API).
src/coordinator/services/alerts_service.go:87
↓ 2 callersMethodInt63
()
src/decoder/hep.pb.go:399
↓ 2 callersFunctionIsInvalidTableKey
IsInvalidTableKey reports whether err is ErrInvalidTableKey (including wrapped).
src/storage/ducklake/validation.go:181
↓ 2 callersFunctionIsLimitableQuery
---- IsLimitableQuery ------------------------------------------------------ IsLimitableQuery returns true if the SQL query is of a type that accepts
src/coordinator/sqlvalidator/validator.go:476
↓ 2 callersMethodIsRevoked
(sessionID string)
src/coordinator/handlers/auth_store.go:40
↓ 2 callersMethodIsSet
()
src/cli/search_proto.go:108
↓ 2 callersMethodJWTMiddleware
JWTMiddleware returns the JWT middleware function
src/coordinator/handlers/auth.go:298
↓ 2 callersFunctionJoinLakeDataPath
JoinLakeDataPath appends path elements to a lake data root. For s3:// and s3a:// bases it uses URL-style '/' joining only — do not use filepath.Join,
src/storage/ducklake/ducklake.go:127
↓ 2 callersMethodJoinQuick
JoinQuick places a player into the quick-match queue. If a player is already waiting, the two are paired into a fresh `quick-N` room; otherwise the ca
src/coordinator/games/netchess/hub.go:230
↓ 2 callersMethodJoinSpectator
JoinSpectator attaches a read-only listener to an existing room. Returns ErrRoomFull (overloaded — spec-cap reached) when the spectator quota is satur
src/coordinator/games/netchess/hub.go:268
↓ 2 callersFunctionLPProfileFor
LPProfileFor encodes (schema, table) into the profile string used by mapping_schema. The encoding survives a round-trip via SplitLPProfile so getTable
src/coordinator/services/lp_mapping_sync.go:434
↓ 2 callersMethodListProtoTypes
ListProtoTypes returns unique proto_types with tables
src/storage/ducklake/manager.go:224
↓ 2 callersMethodListSnapshots
ListSnapshots returns available snapshots for a TableKey (from primary shard)
src/storage/ducklake/manager.go:213
↓ 2 callersMethodListSnapshots
ListSnapshots returns snapshots for a specific table by TableKey
src/storage/ducklake/timetravel.go:562
↓ 2 callersMethodListenAndServe
(ctx context.Context)
src/siprecreceiver/server.go:93
↓ 2 callersMethodMarshalTo
(dAtA []byte)
src/decoder/hep.pb.go:311
↓ 2 callersFunctionMergeCustomLokiLabelsIntoStream
MergeCustomLokiLabelsIntoStream adds validated custom labels; built-in keys on dst always win.
src/remotelog/loki_custom_labels.go:93
↓ 2 callersMethodMovePartition
MovePartition moves a partition (date) from source to destination volume Note: DuckDB doesn't support transactions across multiple attached databases,
src/storage/ducklake/tiered_storage.go:328
↓ 2 callersMethodName
Name returns the catalog name
src/flight/catalog.go:40
↓ 2 callersFunctionNewAvatarStore
(ttl time.Duration)
src/coordinator/handlers/auth_avatar_store.go:25
↓ 2 callersFunctionNewClient
NewClient creates a new API client targeting the given coordinator host. host can be "host:port" or a full URL. TLS verification is skipped for self-s
src/cli/api_client.go:26
↓ 2 callersFunctionNewDuckLakeCatalog
NewDuckLakeCatalog creates a new DuckLake catalog with volume support
src/node/catalog.go:34
↓ 2 callersFunctionNewEngine
NewEngine creates a correlation engine. When cfg.Enable is false the returned engine is nil and callers should treat it as "no correlation". executor
src/scripting/correlation/engine.go:90
↓ 2 callersFunctionNewFlightServer
NewFlightServer creates a new Flight server for HEP data
src/flight/server.go:52
↓ 2 callersFunctionNewFlightService
NewFlightService creates a new FlightSQL service. queryTimeout controls the per-query timeout for data queries to nodes.
src/coordinator/services/flight_service.go:43
↓ 2 callersFunctionNewHEPCatalog
NewHEPCatalog creates a new HEP catalog
src/flight/catalog.go:26
↓ 2 callersFunctionNewLPMappingSyncService
NewLPMappingSyncService constructs the sync service. db is the coordinator's settings DuckDB (where mapping_schema lives), flight queries the data-pla
src/coordinator/services/lp_mapping_sync.go:68
↓ 2 callersFunctionNewLineProtoHandler
NewLineProtoHandler constructs the handler. flightService must not be nil; defaultPrefix is used when the client omits ?prefix= (mirrors ingest.line_p
src/coordinator/handlers/lineproto_v4.go:43
↓ 2 callersFunctionNewManager
NewManager creates a new DuckLake manager with multi-table support
src/storage/ducklake/manager.go:31
↓ 2 callersFunctionNewReader
NewReader creates a reader from an existing writer
src/storage/ducklake/timetravel.go:25
↓ 2 callersFunctionNewStatisticsHandler
(fs *services.FlightService)
src/coordinator/handlers/statistics_v4.go:24
↓ 2 callersFunctionOAuthAuthorizationCodeConfigured
OAuthAuthorizationCodeConfigured reports whether oauth2_provider is set up for the authorization code flow.
src/config/config.go:1049
↓ 2 callersFunctionOpenCatalog
OpenCatalog opens the DuckLake SQLite catalog for read/write. WAL mode and a generous busy_timeout let it coexist with DuckDB readers/writers that hol
src/storage/ducklake/compactor/catalog.go:83
↓ 2 callersFunctionParseBody
ParseBody parses a VQ-RTCPXR document (line-oriented key: value format).
src/vqrtcpreceiver/parser.go:27
← previousnext →801–900 of 4,264, ranked by callers