MCPcopy Create free account

hub / github.com/ZingerLittleBee/ServerBee / functions

Functions6,739 in github.com/ZingerLittleBee/ServerBee

↓ 19 callersFunctionhttp_client
()
crates/server/tests/ip_quality_integration.rs:97
↓ 19 callersFunctioninsert_daily
( db: &DatabaseConnection, server_id: &str, date: NaiveDate, bytes_in: i64,
crates/server/src/service/traffic.rs:1040
↓ 19 callersFunctioninsert_test_server
Insert a minimal server row to satisfy the FK constraint on `unlock_result` and related tables. FK enforcement is enabled by default in sqlx-sqlite.
crates/server/src/service/ip_quality.rs:837
↓ 19 callersFunctionmakeMetrics
(overrides: Partial<ServerMetrics> = {})
apps/web/src/hooks/use-realtime-metrics.test.tsx:8
↓ 19 callersFunctionmake_input
Build a CreateMaintenance with a window relative to `now`.
crates/server/src/service/maintenance.rs:180
↓ 19 callersFunctionoutcome
(status: u16, body: &str, final_url: &str, redirects: Vec<&str>)
crates/agent/src/ip_quality/detectors/mod.rs:229
↓ 19 callersFunctionparse
(input: unknown)
packages/widget-sdk/src/z/primitives.ts:23
↓ 19 callersFunctionsend_welcome
Send a `Welcome` frame from the server side, advertising the given report interval (seconds).
crates/agent/src/reporter.rs:3063
↓ 19 callersMethodsync
Reconcile running tasks with the new config list. Stops tasks no longer in the list, starts new ones, restarts changed ones.
crates/agent/src/pinger.rs:32
↓ 18 callersFunctionbucket_sample_time
(timestamp: DateTime<Utc>, bucket_seconds: i64)
crates/server/src/service/network_probe.rs:1337
↓ 18 callersFunctionbuild_service
( db: DatabaseConnection, config: Arc<AppConfig>, )
crates/server/src/service/security.rs:379
↓ 18 callersFunctionconnect_agent_with_caps
Connect a mock agent, drain the welcome frame, and complete the SystemInfo handshake advertising the given capability bitmask.
crates/server/tests/router_file_extra.rs:37
↓ 18 callersFunctionempty_sparkline
()
crates/server/src/service/network_probe.rs:1367
↓ 18 callersFunctionextensionToLanguage
(filename: string)
apps/web/src/lib/file-utils.ts:88
↓ 18 callersFunctionisCompatible
(hostVersion: string, range: string)
packages/widget-sdk/src/manifest.ts:98
↓ 18 callersFunctionparse_ping_batch_output
Parse the output of a `ping -c N` invocation into a [`BatchIcmpResult`]. This is public so callers (and tests) can parse pre-captured output directly
crates/agent/src/probe_utils.rs:275
↓ 18 callersFunctionregister_agent
(client: &reqwest::Client, base_url: &str)
crates/server/tests/integration.rs:189
↓ 18 callersMethodremove
Remove a cap's grant; returns whether a record existed. Prunes expired.
crates/agent/src/capability_grants/store.rs:131
↓ 18 callersFunctionseed_row
Insert a widget_module row directly with explicit fields for branch coverage of the read paths.
crates/server/src/service/widget_module/service.rs:504
↓ 18 callersMethodsync
Reconcile running tasks with the new target list. Targets are filtered by current capability flags. Tasks that are no longer in the list are stopped;
crates/agent/src/network_prober.rs:46
↓ 18 callersFunctiontest_addr
()
crates/server/src/service/agent_manager.rs:799
↓ 18 callersFunctionwrite_router
()
crates/server/src/router/api/asn.rs:122
↓ 17 callersMethoddispatch_pending_response
Dispatch a response from the agent to a pending HTTP request. Returns true if the response was delivered, false if no pending request was found.
crates/server/src/service/agent_manager.rs:472
↓ 17 callersFunctiongetGridLayoutProps
()
apps/web/src/components/dashboard/dashboard-grid.test.tsx:83
↓ 17 callersFunctionhandshake_collect_system_info
Helper: perform the standard server-side handshake — receive the agent's first `SystemInfo`, then send an `Ack` for it. Returns the SystemInfo frame f
crates/agent/src/reporter.rs:3115
↓ 17 callersFunctioninsert_server
(db: &DatabaseConnection, id: &str)
crates/server/src/service/security.rs:359
↓ 17 callersFunctionlogin_admin
(client: &Client, base_url: &str)
crates/server/tests/widget_module_integration.rs:118
↓ 17 callersFunctionmakeServer
(overrides: Partial<ServerMetrics> = {})
apps/web/src/routes/_authed/servers/index.cells.test.tsx:54
↓ 17 callersMethodopen
Open a new terminal session with the given dimensions.
crates/agent/src/terminal.rs:44
↓ 17 callersFunctionsend_agent_frame
Send a single agent frame as a JSON text message.
crates/server/tests/agent_ws_dispatch.rs:57
↓ 16 callersFunctioncheck
Check an HTTP endpoint for status code and keyword presence. Config options: - `method`: "GET" or "POST" (default "GET") - `keyword`: string to searc
crates/server/src/service/checker/http_keyword.rs:19
↓ 16 callersFunctionconfig_for
(server_url: &str)
crates/agent/src/register.rs:294
↓ 16 callersFunctionconnect_agent_with_caps
Connect a mock agent, drain the welcome frame, and complete the SystemInfo handshake advertising the given capability bitmask. Returns the split socke
crates/server/tests/agent_file_ops.rs:31
↓ 16 callersFunctioncreate_router
(state: Arc<AppState>)
crates/server/src/router/mod.rs:18
↓ 16 callersFunctiongetCombinedSeverity
({ latencyMs, lossRatio }: CombinedSeverityInput)
apps/web/src/lib/network-latency-constants.ts:78
↓ 16 callersFunctiongetEffectiveCapabilityEnabled
( effectiveCapabilities: number | null | undefined, configuredCapabilities: number | null | undefined, b
apps/web/src/lib/capabilities.ts:78
↓ 16 callersFunctionget_setting
( State(state): State<Arc<AppState>>, )
crates/server/src/router/api/network_probe.rs:63
↓ 16 callersFunctionmakeSeries
(entries: [number, number | null][])
apps/web/src/lib/sparkline.test.ts:5
↓ 16 callersFunctionrecv_agent_text
( reader: &mut futures_util::stream::SplitStream< tokio_tungstenite::WebSocketStream<
crates/server/tests/integration.rs:248
↓ 16 callersFunctionseed_server
( db: &DatabaseConnection, id: &str, name: &str, hidden: bool, group_i
crates/server/src/service/public_status.rs:1014
↓ 16 callersFunctionsetup_db_with_fk
Enable foreign keys for test DB (needed for CASCADE behavior).
crates/server/src/service/dashboard.rs:372
↓ 16 callersFunctionstart_test_server
()
crates/server/tests/ip_quality_integration.rs:20
↓ 16 callersMethodwrite
(chunk: string)
apps/web/vite/dev-proxy.ts:35
↓ 15 callersFunctionbase_stats_json
A minimal-but-complete JSON skeleton that deserializes into `Stats`. Every required (non-Option, non-defaulted) field is present.
crates/agent/src/docker/containers.rs:238
↓ 15 callersFunctionbrute_force_payload
(ip: &str, failed: u32)
crates/server/src/service/security.rs:402
↓ 15 callersFunctioncheck
Check DNS resolution for `target` (a domain name). Config options: - `record_type`: "A", "AAAA", "CNAME", "MX", "TXT" (default "A") - `expected_value
crates/server/src/service/checker/dns.rs:20
↓ 15 callersMethodflush
Atomic write: temp file → rename, mode 0600.
crates/agent/src/capability_grants/store.rs:142
↓ 15 callersFunctionhasCap
(capabilities: number, bit: number)
apps/web/src/lib/capabilities.ts:68
↓ 15 callersFunctioninsert_test_server
(db: &DatabaseConnection, id: &str, name: &str)
crates/server/src/service/server.rs:357
↓ 15 callersFunctioninsert_test_server
(db: &DatabaseConnection, id: &str)
crates/server/src/service/record.rs:365
↓ 15 callersFunctionlist_services
( State(state): State<Arc<AppState>>, )
crates/server/src/router/api/ip_quality.rs:101
↓ 15 callersMethodregister_pending_request
Register a pending request for HTTP→WS relay with a default 60s TTL. Returns a oneshot receiver that will receive the agent's response.
crates/server/src/service/agent_manager.rs:466
↓ 15 callersFunctionsample_create
()
crates/server/src/service/service_monitor.rs:407
↓ 15 callersFunctionsend_docker_system_info
Complete the SystemInfo handshake reporting the `docker` runtime feature and a given capability bitmask. The shared `send_system_info` helper always r
crates/server/tests/agent_docker_extra.rs:37
↓ 15 callersFunctionspawn_mock_server
A minimal local HTTP/1.1 mock. It accepts up to `responses.len()` connections (one request each) and replies with the queued raw response bytes in ord
crates/agent/src/register.rs:229
↓ 15 callersFunctionstats_from_json
Build a fully-populated `Stats` value from JSON for use in tests. `extra` lets individual tests override the default skeleton.
crates/agent/src/docker/containers.rs:232
↓ 15 callersFunctiont
(offset_hours: i64)
crates/server/src/service/public_status.rs:889
↓ 15 callersFunctionupdate_setting
( State(state): State<Arc<AppState>>, Json(input): Json<NetworkProbeSetting>, )
crates/server/src/router/api/network_probe.rs:203
↓ 15 callersFunctionuser_info
(id: &str, email: Option<&str>, name: Option<&str>)
crates/server/src/service/oauth.rs:388
↓ 15 callersMethodvalidate_path
Validate that the given path is within an allowed root and does not match deny patterns.
crates/agent/src/file_manager.rs:105
↓ 14 callersFunctioncheck
Check SSL/TLS certificate for `target` (domain name, optionally with ":port"). Config options: - `port`: port to connect to (default 443) - `warning_
crates/server/src/service/checker/ssl.rs:22
↓ 14 callersFunctiondefault_mobile_config
()
crates/server/src/service/mobile_auth.rs:445
↓ 14 callersMethodemit
(event: EventName, ...args: DevProxyHookEventMap[EventName])
apps/web/vite/dev-proxy.test.ts:44
↓ 14 callersFunctionlogin_admin
(client: &reqwest::Client, base_url: &str)
crates/server/tests/ip_quality_integration.rs:105
↓ 14 callersFunctionlogin_params
Helper to build LoginParams with test defaults; override only what matters.
crates/server/src/service/auth.rs:694
↓ 14 callersFunctionmakeMockReq
(method: string, url: string, headers: MockReqHeaders = {})
apps/web/vite/dev-proxy.test.ts:106
↓ 14 callersFunctionmakeRegisteredProxy
(opts: DevProxyOptions = baseOpts)
apps/web/vite/dev-proxy.test.ts:130
↓ 14 callersMethodobserve
Record an inbound connection attempt and possibly emit a PortScan event.
crates/agent/src/security/scan_detector.rs:81
↓ 14 callersFunctionparse_date_string
Try multiple date formats to parse a date string.
crates/server/src/service/checker/whois.rs:242
↓ 14 callersFunctionparse_sshd_line
(line: &str)
crates/agent/src/security/ssh_parser.rs:45
↓ 14 callersFunctionsplit_host_port
Split a probe target of the form `host`, `host:port`, `[::1]`, or `[::1]:443` into its host and port components, defaulting the port to `default_port`
crates/agent/src/probe_utils.rs:19
↓ 14 callersFunctionwidget_js
Build a single-file widget JS source with the given id baked into the JSDoc manifest so the extractor accepts it.
crates/server/src/service/widget_module/service.rs:480
↓ 13 callersMethodagent_messages
All recorded messages decoded into `AgentMessage` (text frames only).
crates/agent/src/reporter.rs:1928
↓ 13 callersFunctioncheck
Check TCP connectivity to `target` (expected format: "host:port"). Config options: - `timeout`: connection timeout in seconds (default 10)
crates/server/src/service/checker/tcp.rs:25
↓ 13 callersFunctionconnect_agent
( base_url: &str, token: &str, )
crates/server/tests/integration.rs:220
↓ 13 callersFunctionentry
(id: &str, target: &str, family: u8)
crates/agent/src/firewall/manager.rs:271
↓ 13 callersFunctioninsert_rule
( db: &DatabaseConnection, id: &str, items_json: &str, notification_group_id:
crates/server/src/service/security.rs:463
↓ 13 callersFunctionnormalize_lookup_target
(target: &str)
crates/server/src/service/checker/whois.rs:145
↓ 13 callersFunctionparse_expiry_date
Parse an expiry date from WHOIS response text.
crates/server/src/service/checker/whois.rs:217
↓ 13 callersFunctionread_capped
Read at most `max_bytes` from the response body, streaming chunk-by-chunk. Reading stops as soon as `max_bytes` is reached, so a malicious endpoint r
crates/agent/src/ip_quality/http.rs:144
↓ 13 callersFunctionrecv_text
( reader: &mut futures_util::stream::SplitStream< tokio_tungstenite::WebSocketStream<
crates/server/tests/docker_integration.rs:219
↓ 13 callersMethodrun
(&self, args: &[&str], op: NftOp)
crates/agent/src/firewall/nft.rs:55
↓ 13 callersFunctionrun_single
Helper: issue a single-URL probe and classify with a pure function.
crates/agent/src/ip_quality/detectors/mod.rs:51
↓ 13 callersFunctionseed_server_result
( db: &DatabaseConnection, server_id: &str, service_id: &str, status: UnlockSt
crates/server/src/service/ip_quality.rs:1259
↓ 13 callersFunctionsplit_timestamp
Split a log line into (timestamp, message) if timestamps are enabled. Docker log timestamps look like: "2026-03-18T10:00:00.000000000Z rest of message
crates/agent/src/docker/logs.rs:142
↓ 12 callersMethodbroadcast_browser
(&self, msg: BrowserMessage)
crates/server/src/service/agent_manager.rs:442
↓ 12 callersFunctionbuild_zip
Build an in-memory zip from `(path, bytes)` pairs.
crates/server/src/service/widget_module/service.rs:533
↓ 12 callersFunctionconfig_with
Build an OAuthConfig with the requested providers enabled.
crates/server/src/service/oauth.rs:362
↓ 12 callersFunctioncreateWrapper
()
apps/web/src/hooks/use-ip-quality-api.test.ts:18
↓ 12 callersMethoddefault
()
crates/agent/src/config.rs:62
↓ 12 callersFunctiondrive_e2e
Drive `run_connect_once` to completion in the background and join the server task, both bounded. Returns the server task's value.
crates/agent/src/reporter.rs:3443
↓ 12 callersFunctionfixed_now
Fixed wall-clock instant used so scheduling math is deterministic.
crates/server/src/task/service_monitor_checker.rs:281
↓ 12 callersFunctiongetRuntime
()
packages/widget-sdk/src/runtime-context.ts:69
↓ 12 callersFunctioninsert_ping_record
Seed a single ping record and return the inserted row id.
crates/server/src/service/ping.rs:458
↓ 12 callersFunctionisTextFile
(filename: string)
apps/web/src/lib/file-utils.ts:106
↓ 12 callersMethodis_online
Check if a server is currently connected.
crates/server/src/service/agent_manager.rs:279
↓ 12 callersFunctionlog_docker_view
( state: &AppState, user_id: &str, ip: &str, server_id: &str, resource: DockerViewResource
crates/server/src/router/api/docker.rs:60
↓ 12 callersFunctionmakeMockProxyReq
()
apps/web/vite/dev-proxy.test.ts:89
↓ 12 callersFunctionoutcome
(status: u16)
crates/agent/src/ip_quality/detectors/netflix.rs:67
↓ 12 callersFunctionpath_in
(dir: &TempDir)
crates/agent/src/security/first_seen_store.rs:139
← previousnext →101–200 of 6,739, ranked by callers