Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sipcapture/homer
/ functions
Functions
4,264 in github.com/sipcapture/homer
⨍
Functions
4,264
◇
Types & classes
750
↓ 466 callers
Function
writeError
(c echo.Context, status int, title, detail string)
src/coordinator/handlers/auth_v4_helpers.go:98
↓ 242 callers
Method
Error
()
src/scripting/luar/luar.go:23
↓ 221 callers
Function
SAFE_HEAP_STORE
(dest, value, bytes, isFloat)
src/ui/public/game/websockets-doom.js:515
↓ 186 callers
Method
Scan
Scan returns a RecordReader for querying the table
src/flight/hep_table.go:102
↓ 143 callers
Function
escapeSQL
escapeSQL escapes a string for SQL. Deprecated: use sqlvalidator.SafeString instead.
src/coordinator/services/user_service.go:378
↓ 138 callers
Function
cn
(...inputs: ClassValue[])
src/ui/src/lib/utils.ts:4
↓ 132 callers
Method
Add
Add adds a packet to the buffer
src/flight/hep_table.go:237
↓ 117 callers
Method
push
(val reflect.Value)
src/scripting/luar/luar.go:99
↓ 115 callers
Method
Close
()
src/cli/migrate_hep.go:237
↓ 108 callers
Method
Close
()
src/scripting/scriptengine.go:31
↓ 106 callers
Method
Error
()
src/coordinator/games/chess/engine_test.go:183
↓ 102 callers
Method
String
()
src/cli/search_proto.go:94
↓ 94 callers
Function
buildMeta
(c echo.Context, message string)
src/coordinator/handlers/auth_v4_helpers.go:76
↓ 89 callers
Method
Query
(ctx context.Context, sql string)
src/scripting/correlation/engine.go:51
↓ 81 callers
Method
Set
(s string)
src/cli/search_proto.go:84
↓ 77 callers
Method
Next
(ctx context.Context)
src/coordinator/services/stream_service.go:215
↓ 68 callers
Method
get
(key string)
src/scripting/correlation/cache.go:39
↓ 67 callers
Method
Close
()
src/coordinator/services/stream_service.go:216
↓ 66 callers
Function
SAFE_HEAP_LOAD
(dest, bytes, unsigned, isFloat)
src/ui/public/game/websockets-doom.js:532
↓ 66 callers
Function
getUsernameFromContext
(c echo.Context)
src/coordinator/handlers/me_settings_v4.go:136
↓ 61 callers
Method
Unmarshal
(dAtA []byte)
src/decoder/hep.pb.go:540
↓ 59 callers
Method
Stop
()
src/main.go:63
↓ 55 callers
Method
Get
Get stores in 'a' the Lua value indexed at the sequence of 'subfields'.
src/scripting/luar/luaobject.go:177
↓ 55 callers
Method
Marshal
()
src/decoder/hep.pb.go:301
↓ 55 callers
Function
stringField
(m map[string]interface{}, key string)
src/lineprotoreceiver/hep_sip_call_lp.go:84
↓ 53 callers
Function
copy
()
src/ui/src/dashboard/ExportTab.tsx:205
↓ 50 callers
Method
has
(key string)
src/scripting/correlation/cache.go:32
↓ 47 callers
Method
Done
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 callers
Method
Parse
Parse parses the .Raw field
src/sipparser/uri.go:81
↓ 45 callers
Method
Set
Set sets the value at the sequence of 'subfields' with the value 'a'.
src/scripting/luar/luaobject.go:207
↓ 45 callers
Function
btos
btos converts []byte to string without copying.
src/sipparser/zerocopy.go:39
↓ 45 callers
Method
bump
(table string, scanned, inserted, skipped int)
src/cli/migrate_settings.go:119
↓ 44 callers
Function
abort
(what)
src/ui/public/game/websockets-doom.js:1064
↓ 42 callers
Method
replace
(next map[string]*compiledScript)
src/scripting/correlation/cache.go:46
↓ 40 callers
Function
drain
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 callers
Method
String
()
src/decoder/hep.pb.go:509
↓ 38 callers
Method
Do
(line []rune, pos int)
src/cli/cli_complete.go:36
↓ 38 callers
Function
newGame
(fen?: string)
src/ui/src/dashboard/widgets/chessCore.ts:71
↓ 37 callers
Function
Load
Load loads configuration from file and environment
src/config/config.go:1115
↓ 37 callers
Function
writeTmpConfig
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 callers
Method
Get
(id string)
src/coordinator/handlers/exports_store.go:51
↓ 35 callers
Function
escapeJSONData
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 callers
Function
parseInt
(s string, def int)
src/cli/wizard_cmd.go:867
↓ 35 callers
Function
zcTrimWS
--- Low-level helpers ---
src/sipparser/zerocopy.go:574
↓ 34 callers
Method
Run
(hep *decoder.HEP)
src/scripting/scriptengine.go:30
↓ 34 callers
Function
SAFE_HEAP_LOAD_D
(dest, bytes, unsigned)
src/ui/public/game/websockets-doom.js:547
↓ 33 callers
Method
send
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 callers
Function
isAdmin
(c echo.Context)
src/coordinator/handlers/users_v4.go:341
↓ 28 callers
Method
HandleFrame
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 callers
Method
LakeName
LakeName returns the configured DuckLake catalog name.
src/coordinator/services/flight_service.go:68
↓ 27 callers
Method
Int
()
src/cli/search_proto.go:101
↓ 27 callers
Function
tryMove
(game: Chess, move: UciMove)
src/ui/src/dashboard/widgets/chessCore.ts:187
↓ 26 callers
Method
Write
(b []byte)
src/server/tls.go:342
↓ 26 callers
Function
escapeHtml
(str: string)
src/ui/src/lib/jsonDisplay.ts:15
↓ 26 callers
Method
parse
()
src/sipparser/via.go:62
↓ 26 callers
Function
sqlFormMatchClause
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 callers
Function
stringToUTF8
(str, outPtr, maxBytesToWrite)
src/ui/public/game/websockets-doom.js:752
↓ 25 callers
Method
Intn
(n int)
src/decoder/hep.pb.go:402
↓ 25 callers
Method
Put
(state, providerName, pkceVerifier string, ttl time.Duration)
src/coordinator/handlers/oauth_state.go:29
↓ 24 callers
Function
newTestPlayer
(name string)
src/coordinator/games/netchess/hub_test.go:32
↓ 24 callers
Function
resolveTimeRange
( range?: DashboardTimeRange | null, timeZone?: string, )
src/ui/src/dashboard/utils/resolveTimeRange.ts:199
↓ 23 callers
Method
Uint32
()
src/decoder/hep.pb.go:401
↓ 23 callers
Function
WriteJSONString
(w io.Writer, s string)
src/decoder/decoder.go:369
↓ 23 callers
Function
stringFrom
(v interface{})
src/coordinator/handlers/callinfo_compute.go:28
↓ 22 callers
Function
NewIngester
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 callers
Function
apiGet
(path: string, params?: QueryParams)
src/ui/src/api.ts:53
↓ 22 callers
Function
makeValueProxy
(L *lua.State, v reflect.Value, proxyMT string)
src/scripting/luar/proxy.go:81
↓ 22 callers
Function
parseUint
(str: string, defaultValue = 0)
src/ui/src/components/ui/digits-input.tsx:34
↓ 22 callers
Method
send
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 callers
Method
JoinRoom
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 callers
Method
Start
()
src/main.go:62
↓ 21 callers
Function
buildSearchSQLV4
(lakeName string, req *SearchObjectV4, virtualRules map[string]services.VirtualFieldRule)
src/coordinator/handlers/transactions_v4.go:2585
↓ 21 callers
Method
close
()
src/scripting/luar/luar.go:83
↓ 21 callers
Function
newLPDB
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 callers
Function
GoToLuaProxy
GoToLuaProxy is like GoToLua but pushes a proxy on the Lua stack when it makes sense.
src/scripting/luar/luar.go:265
↓ 20 callers
Method
Ingest
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 callers
Method
JoinRoom
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 callers
Function
NewPlayer
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 callers
Function
luaToGoValue
(L *lua.State, idx int)
src/scripting/luar/proxy.go:72
↓ 19 callers
Method
HandleFrame
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 callers
Function
UTF8ToString
(ptr, maxBytesToRead)
src/ui/public/game/websockets-doom.js:714
↓ 19 callers
Function
cleanWs
(s string)
src/sipparser/utils.go:24
↓ 19 callers
Function
typeof
(a interface{})
src/scripting/luar/luar.go:749
↓ 19 callers
Function
webglGetUniformLocation
(location)
src/ui/public/game/websockets-doom.js:7231
↓ 18 callers
Function
EnsureSettingsSchema
EnsureSettingsSchema creates tables for users/settings if missing.
src/coordinator/services/settings_db.go:46
↓ 18 callers
Function
OpenSettingsDB
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 callers
Function
SAFE_HEAP_STORE_D
(dest, value, bytes)
src/ui/public/game/websockets-doom.js:528
↓ 18 callers
Function
apiPost
(path: string, body?: unknown)
src/ui/src/api.ts:93
↓ 18 callers
Function
valueToNumber
(L *lua.State, v reflect.Value)
src/scripting/luar/proxy.go:260
↓ 17 callers
Method
Close
Close stops workers and the SIP stack.
src/vqrtcpreceiver/server.go:152
↓ 17 callers
Method
Publish
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 callers
Function
drainTypes
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 callers
Function
handleUnauthorized
()
src/ui/src/api.ts:33
↓ 17 callers
Function
mustJSON
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 callers
Function
valueOfProxy
(L *lua.State, idx int)
src/scripting/luar/proxy.go:239
↓ 17 callers
Function
zcEqCI
zcEqCI compares byte slices case-insensitively.
src/sipparser/zerocopy.go:585
↓ 16 callers
Method
Create
(exportType string)
src/coordinator/handlers/exports_store.go:38
↓ 16 callers
Function
LuaToGo
LuaToGo converts the Lua value at index 'idx' to the Go value.
src/scripting/luar/luar.go:564
↓ 16 callers
Method
Read
(b []byte)
src/server/tls.go:292
↓ 16 callers
Function
findByte
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