MCPcopy Create free account

hub / github.com/sipcapture/homer / functions

Functions4,264 in github.com/sipcapture/homer

↓ 466 callersFunctionwriteError
(c echo.Context, status int, title, detail string)
src/coordinator/handlers/auth_v4_helpers.go:98
↓ 242 callersMethodError
()
src/scripting/luar/luar.go:23
↓ 221 callersFunctionSAFE_HEAP_STORE
(dest, value, bytes, isFloat)
src/ui/public/game/websockets-doom.js:515
↓ 186 callersMethodScan
Scan returns a RecordReader for querying the table
src/flight/hep_table.go:102
↓ 143 callersFunctionescapeSQL
escapeSQL escapes a string for SQL. Deprecated: use sqlvalidator.SafeString instead.
src/coordinator/services/user_service.go:378
↓ 138 callersFunctioncn
(...inputs: ClassValue[])
src/ui/src/lib/utils.ts:4
↓ 132 callersMethodAdd
Add adds a packet to the buffer
src/flight/hep_table.go:237
↓ 117 callersMethodpush
(val reflect.Value)
src/scripting/luar/luar.go:99
↓ 115 callersMethodClose
()
src/cli/migrate_hep.go:237
↓ 108 callersMethodClose
()
src/scripting/scriptengine.go:31
↓ 106 callersMethodError
()
src/coordinator/games/chess/engine_test.go:183
↓ 102 callersMethodString
()
src/cli/search_proto.go:94
↓ 94 callersFunctionbuildMeta
(c echo.Context, message string)
src/coordinator/handlers/auth_v4_helpers.go:76
↓ 89 callersMethodQuery
(ctx context.Context, sql string)
src/scripting/correlation/engine.go:51
↓ 81 callersMethodSet
(s string)
src/cli/search_proto.go:84
↓ 77 callersMethodNext
(ctx context.Context)
src/coordinator/services/stream_service.go:215
↓ 68 callersMethodget
(key string)
src/scripting/correlation/cache.go:39
↓ 67 callersMethodClose
()
src/coordinator/services/stream_service.go:216
↓ 66 callersFunctionSAFE_HEAP_LOAD
(dest, bytes, unsigned, isFloat)
src/ui/public/game/websockets-doom.js:532
↓ 66 callersFunctiongetUsernameFromContext
(c echo.Context)
src/coordinator/handlers/me_settings_v4.go:136
↓ 61 callersMethodUnmarshal
(dAtA []byte)
src/decoder/hep.pb.go:540
↓ 59 callersMethodStop
()
src/main.go:63
↓ 55 callersMethodGet
Get stores in 'a' the Lua value indexed at the sequence of 'subfields'.
src/scripting/luar/luaobject.go:177
↓ 55 callersMethodMarshal
()
src/decoder/hep.pb.go:301
↓ 55 callersFunctionstringField
(m map[string]interface{}, key string)
src/lineprotoreceiver/hep_sip_call_lp.go:84
↓ 53 callersFunctioncopy
()
src/ui/src/dashboard/ExportTab.tsx:205
↓ 50 callersMethodhas
(key string)
src/scripting/correlation/cache.go:32
↓ 47 callersMethodDone
Done returns a channel closed when the player has been removed from its room (either by Leave or because the room ended).
src/coordinator/games/netris/hub.go:118
↓ 46 callersMethodParse
Parse parses the .Raw field
src/sipparser/uri.go:81
↓ 45 callersMethodSet
Set sets the value at the sequence of 'subfields' with the value 'a'.
src/scripting/luar/luaobject.go:207
↓ 45 callersFunctionbtos
btos converts []byte to string without copying.
src/sipparser/zerocopy.go:39
↓ 45 callersMethodbump
(table string, scanned, inserted, skipped int)
src/cli/migrate_settings.go:119
↓ 44 callersFunctionabort
(what)
src/ui/public/game/websockets-doom.js:1064
↓ 42 callersMethodreplace
(next map[string]*compiledScript)
src/scripting/correlation/cache.go:46
↓ 40 callersFunctiondrain
drain pulls every queued envelope off the player's outbox into a slice — destructive read, useful for asserting frames after a hub action. Test-only h
src/coordinator/games/netchess/hub_test.go:14
↓ 39 callersMethodString
()
src/decoder/hep.pb.go:509
↓ 38 callersMethodDo
(line []rune, pos int)
src/cli/cli_complete.go:36
↓ 38 callersFunctionnewGame
(fen?: string)
src/ui/src/dashboard/widgets/chessCore.ts:71
↓ 37 callersFunctionLoad
Load loads configuration from file and environment
src/config/config.go:1115
↓ 37 callersFunctionwriteTmpConfig
writeTmpConfig writes the given JSON body into a temporary homer-core.json inside t.TempDir() and returns the resulting path.
src/config/config_test.go:19
↓ 36 callersMethodGet
(id string)
src/coordinator/handlers/exports_store.go:51
↓ 35 callersFunctionescapeJSONData
escapeJSONData escapes a JSON blob for safe embedding in a SQL single-quoted string. Unlike escapeSQL it does NOT truncate the string, because structu
src/coordinator/services/user_service.go:390
↓ 35 callersFunctionparseInt
(s string, def int)
src/cli/wizard_cmd.go:867
↓ 35 callersFunctionzcTrimWS
--- Low-level helpers ---
src/sipparser/zerocopy.go:574
↓ 34 callersMethodRun
(hep *decoder.HEP)
src/scripting/scriptengine.go:30
↓ 34 callersFunctionSAFE_HEAP_LOAD_D
(dest, bytes, unsigned)
src/ui/public/game/websockets-doom.js:547
↓ 33 callersMethodsend
send marshals an envelope and pushes it to the player's outbox, dropping the oldest frame if the outbox is full so a slow client can never wedge the h
src/coordinator/games/netris/hub.go:436
↓ 29 callersFunctionisAdmin
(c echo.Context)
src/coordinator/handlers/users_v4.go:341
↓ 28 callersMethodHandleFrame
HandleFrame routes a decoded client frame through the hub. Errors are surfaced as `error` envelopes back to the sender; the connection is left open so
src/coordinator/games/netchess/hub.go:506
↓ 28 callersMethodLakeName
LakeName returns the configured DuckLake catalog name.
src/coordinator/services/flight_service.go:68
↓ 27 callersMethodInt
()
src/cli/search_proto.go:101
↓ 27 callersFunctiontryMove
(game: Chess, move: UciMove)
src/ui/src/dashboard/widgets/chessCore.ts:187
↓ 26 callersMethodWrite
(b []byte)
src/server/tls.go:342
↓ 26 callersFunctionescapeHtml
(str: string)
src/ui/src/lib/jsonDisplay.ts:15
↓ 26 callersMethodparse
()
src/sipparser/via.go:62
↓ 26 callersFunctionsqlFormMatchClause
sqlFormMatchClause builds a dashboard/form string filter: exact equality by default; SQL LIKE only when rawValue contains '%' (user-supplied wildcards
src/coordinator/handlers/transactions_v4.go:44
↓ 26 callersFunctionstringToUTF8
(str, outPtr, maxBytesToWrite)
src/ui/public/game/websockets-doom.js:752
↓ 25 callersMethodIntn
(n int)
src/decoder/hep.pb.go:402
↓ 25 callersMethodPut
(state, providerName, pkceVerifier string, ttl time.Duration)
src/coordinator/handlers/oauth_state.go:29
↓ 24 callersFunctionnewTestPlayer
(name string)
src/coordinator/games/netchess/hub_test.go:32
↓ 24 callersFunctionresolveTimeRange
( range?: DashboardTimeRange | null, timeZone?: string, )
src/ui/src/dashboard/utils/resolveTimeRange.ts:199
↓ 23 callersMethodUint32
()
src/decoder/hep.pb.go:401
↓ 23 callersFunctionWriteJSONString
(w io.Writer, s string)
src/decoder/decoder.go:369
↓ 23 callersFunctionstringFrom
(v interface{})
src/coordinator/handlers/callinfo_compute.go:28
↓ 22 callersFunctionNewIngester
NewIngester returns a ready-to-use Ingester. lakeName is the DuckLake catalog identifier ("homer_lake" by default) used to qualify table names. cfg ma
src/lineprotoreceiver/ingest.go:53
↓ 22 callersFunctionapiGet
(path: string, params?: QueryParams)
src/ui/src/api.ts:53
↓ 22 callersFunctionmakeValueProxy
(L *lua.State, v reflect.Value, proxyMT string)
src/scripting/luar/proxy.go:81
↓ 22 callersFunctionparseUint
(str: string, defaultValue = 0)
src/ui/src/components/ui/digits-input.tsx:34
↓ 22 callersMethodsend
send tries to enqueue an envelope to a player. Non-blocking — if the outbox is full, we drop the frame. Caller holds hub.mu.
src/coordinator/games/netchess/hub.go:877
↓ 21 callersMethodJoinRoom
JoinRoom places a player into a named room (creating it if needed). Returns the room. The handler should call this exactly once per player. The lobby
src/coordinator/games/netchess/hub.go:200
↓ 21 callersMethodStart
()
src/main.go:62
↓ 21 callersFunctionbuildSearchSQLV4
(lakeName string, req *SearchObjectV4, virtualRules map[string]services.VirtualFieldRule)
src/coordinator/handlers/transactions_v4.go:2585
↓ 21 callersMethodclose
()
src/scripting/luar/luar.go:83
↓ 21 callersFunctionnewLPDB
newLPDB opens a fresh in-memory DuckDB and attaches a second in-memory database under the name lakeName so that both two-part ("<lake>.<table>") and t
src/lineprotoreceiver/ingest_test.go:24
↓ 20 callersFunctionGoToLuaProxy
GoToLuaProxy is like GoToLua but pushes a proxy on the Lua stack when it makes sense.
src/scripting/luar/luar.go:265
↓ 20 callersMethodIngest
Ingest parses body as Line Protocol, lazily creates / extends the target tables, and INSERTs the resulting rows. dbName is optional — when non-empty i
src/lineprotoreceiver/ingest.go:87
↓ 20 callersMethodJoinRoom
JoinRoom places a player into a named room (creating it if needed). Returns the room and a "matched" envelope to be sent back to the caller (and to th
src/coordinator/games/netris/hub.go:156
↓ 20 callersFunctionNewPlayer
NewPlayer is a convenience constructor used by the WS handler. outbox > 0 lets the handler size the per-socket buffer to its observed write throughput
src/coordinator/games/netris/hub.go:498
↓ 20 callersFunctionluaToGoValue
(L *lua.State, idx int)
src/scripting/luar/proxy.go:72
↓ 19 callersMethodHandleFrame
HandleFrame is the one entry point the WS handler calls for every incoming frame. It applies relay rules (n-1 garbage), updates readiness state and br
src/coordinator/games/netris/hub.go:344
↓ 19 callersFunctionUTF8ToString
(ptr, maxBytesToRead)
src/ui/public/game/websockets-doom.js:714
↓ 19 callersFunctioncleanWs
(s string)
src/sipparser/utils.go:24
↓ 19 callersFunctiontypeof
(a interface{})
src/scripting/luar/luar.go:749
↓ 19 callersFunctionwebglGetUniformLocation
(location)
src/ui/public/game/websockets-doom.js:7231
↓ 18 callersFunctionEnsureSettingsSchema
EnsureSettingsSchema creates tables for users/settings if missing.
src/coordinator/services/settings_db.go:46
↓ 18 callersFunctionOpenSettingsDB
OpenSettingsDB opens the DuckDB file for users/settings. On a fresh installation the parent directory (e.g. /var/lib/homer) usually does not exist ye
src/coordinator/services/settings_db.go:24
↓ 18 callersFunctionSAFE_HEAP_STORE_D
(dest, value, bytes)
src/ui/public/game/websockets-doom.js:528
↓ 18 callersFunctionapiPost
(path: string, body?: unknown)
src/ui/src/api.ts:93
↓ 18 callersFunctionvalueToNumber
(L *lua.State, v reflect.Value)
src/scripting/luar/proxy.go:260
↓ 17 callersMethodClose
Close stops workers and the SIP stack.
src/vqrtcpreceiver/server.go:152
↓ 17 callersMethodPublish
Publish distributes evt to every matching subscriber. Safe to call with a nil receiver — that is how the ingest hot path ignores the feature when disa
src/stream/hepstream/broker.go:103
↓ 17 callersFunctiondrainTypes
drainTypes pulls every frame currently waiting in the outbox and returns their Envelope.Type fields in order. Useful for asserting the sequence of ser
src/coordinator/games/netris/hub_test.go:20
↓ 17 callersFunctionhandleUnauthorized
()
src/ui/src/api.ts:33
↓ 17 callersFunctionmustJSON
mustJSON encodes v with encoding/json. Returns "null" on failure so the caller can pass the result straight to a JSON column without branching on erro
src/storage/ducklake/otlp_storage.go:549
↓ 17 callersFunctionvalueOfProxy
(L *lua.State, idx int)
src/scripting/luar/proxy.go:239
↓ 17 callersFunctionzcEqCI
zcEqCI compares byte slices case-insensitively.
src/sipparser/zerocopy.go:585
↓ 16 callersMethodCreate
(exportType string)
src/coordinator/handlers/exports_store.go:38
↓ 16 callersFunctionLuaToGo
LuaToGo converts the Lua value at index 'idx' to the Go value.
src/scripting/luar/luar.go:564
↓ 16 callersMethodRead
(b []byte)
src/server/tls.go:292
↓ 16 callersFunctionfindByte
findByte finds first occurrence of byte using optimized scanning
src/sipparser/fast_parser_asm.go:118
next →1–100 of 4,264, ranked by callers