MCPcopy Create free account

hub / github.com/ZingerLittleBee/ServerBee / functions

Functions6,739 in github.com/ZingerLittleBee/ServerBee

↓ 2,160 callersFunctiont
(lang: string)
apps/docs/src/components/landing/translations.ts:168
↓ 1,357 callersMethodsend
(data: unknown)
apps/web/src/lib/ws-client.ts:102
↓ 780 callersMethodget
(db: &DatabaseConnection, id: &str)
crates/server/src/service/ping.rs:51
↓ 679 callersFunctionsetup_test_db
()
crates/server/src/test_utils.rs:6
↓ 604 callersFunctionhttp_client
Build a reqwest client that stores cookies automatically (for session auth).
crates/server/tests/common/mod.rs:99
↓ 575 callersFunctionstart_test_server
Start a test server in a temporary directory bound to a random port. Returns `(base_url, temp_dir)`. Keep `temp_dir` alive for the duration of the te
crates/server/tests/common/mod.rs:25
↓ 479 callersFunctionlogin_admin
Log in as the seeded admin; the session cookie is stored on `client`.
crates/server/tests/common/mod.rs:108
↓ 426 callersFunctiondefault
(value: T)
packages/widget-sdk/src/z/primitives.ts:40
↓ 348 callersMethodas_str
(&self)
crates/server/src/service/file_transfer.rs:19
↓ 269 callersFunctioncn
(...inputs: ClassValue[])
apps/web/src/lib/utils.ts:4
↓ 237 callersFunctionrender
(id: string)
packages/widget-sdk/src/actions/index.ts:25
↓ 234 callersFunctiondispatch
Run the built-in detector identified by `key` using `client`. Returns `(UnlockStatus, Option<region_string>, latency_ms)`. Unknown keys return `Unloc
crates/agent/src/ip_quality/detectors/mod.rs:32
↓ 226 callersMethodcollect
(&mut self)
crates/agent/src/collector/mod.rs:46
↓ 203 callersMethodcontains
(&self, id: &str)
crates/server/src/service/public_status.rs:314
↓ 203 callersFunctiondescribe
(label: string)
packages/widget-sdk/src/z/primitives.ts:35
↓ 202 callersFunctionok
(data: T)
crates/server/src/error.rs:110
↓ 166 callersFunctionget
(id: string)
apps/web/src/widgets-runtime/registry.ts:36
↓ 142 callersMethodlen
(&self)
crates/agent/src/security/first_seen_store.rs:114
↓ 116 callersFunctioncreate_user
( State(state): State<Arc<AppState>>, Extension(actor): Extension<CurrentUser>, ConnectInfo(addr):
crates/server/src/router/api/user.rs:76
↓ 113 callersMethodfind
Find a single preset target by ID.
crates/server/src/presets/mod.rs:99
↓ 109 callersMethodupdate
( db: &DatabaseConnection, agent_manager: &AgentManager, id: &str, input: Upda
crates/server/src/service/ping.rs:92
↓ 98 callersMethodclose
Close a terminal session.
crates/agent/src/terminal.rs:230
↓ 98 callersFunctionregister_agent
Register an agent (enrollment → register) and return `(server_id, token)`.
crates/server/tests/common/mod.rs:200
↓ 97 callersMethodsuccess
(response: LatestAgentVersionResponse)
crates/server/src/service/upgrade_release.rs:26
↓ 95 callersMethoddelete
( db: &DatabaseConnection, agent_manager: &AgentManager, id: &str, )
crates/server/src/service/ping.rs:136
↓ 91 callersFunctionNotFound
()
apps/web/src/components/not-found.tsx:11
↓ 91 callersMethodmax
(v: number)
packages/widget-sdk/src/z/primitives.ts:92
↓ 90 callersFunctioncreate_server
Create a pending server via the admin API and return its server id.
crates/server/tests/common/mod.rs:146
↓ 85 callersFunctionlogin_as_new_user
Create a second user with the given role and return an authenticated client logged in as that user. Requires an already-authenticated admin client.
crates/server/tests/common/mod.rs:121
↓ 79 callersFunctionformatBytes
(bytes: number)
apps/web/src/lib/utils.ts:50
↓ 75 callersMethodremove
(&self, transfer_id: &str)
crates/server/src/service/file_transfer.rs:210
↓ 71 callersFunctionrecv_agent_text
Receive the next text frame from the agent socket, parsed as JSON (5s timeout).
crates/server/tests/common/mod.rs:225
↓ 69 callersFunctionhttp_client
Build a reqwest client that stores cookies automatically.
crates/server/tests/integration.rs:105
↓ 66 callersFunctionupdate
(key: K, value: ConfigFormState[K])
apps/web/src/routes/_authed/settings/status-page-config-form.tsx:56
↓ 65 callersFunctionstart_test_server
Start a test server in a temporary directory with a random port. Returns `(base_url, temp_dir)` where `temp_dir` is kept alive for the duration of the
crates/server/tests/integration.rs:23
↓ 60 callersFunctionmake_manager
(config: FileConfig)
crates/agent/src/file_manager.rs:755
↓ 59 callersFunctionextract_client_ip
Extract the real client IP address from a request. Security model: - If `trusted_proxies` is empty, return the TCP source IP directly (XFF ignored).
crates/server/src/router/utils.rs:16
↓ 59 callersFunctionlogin_admin
Login as admin and return the authenticated client (with session cookie).
crates/server/tests/integration.rs:114
↓ 58 callersFunctionmake_config
(root: &str)
crates/agent/src/file_manager.rs:739
↓ 57 callersFunctiononChange
()
apps/web/src/hooks/use-mobile.ts:10
↓ 55 callersMethoddefault
()
crates/server/src/service/alert.rs:117
↓ 54 callersMethoddispatch
Dispatch a single `ServerMessage` (as JSON) through the method.
crates/agent/src/reporter.rs:2061
↓ 50 callersMethodfrom
(err: sea_orm::DbErr)
crates/server/src/error.rs:94
↓ 50 callersMethodmin
(v: number)
packages/widget-sdk/src/z/primitives.ts:87
↓ 49 callersMethoddelete
Delete a file or directory.
crates/agent/src/file_manager.rs:316
↓ 44 callersMethodabort
()
apps/web/vite/dev-proxy.ts:13
↓ 40 callersMethodget_sender
Get the mpsc sender for a specific agent to send commands to it.
crates/server/src/service/agent_manager.rs:334
↓ 39 callersMethodget
( db: &DatabaseConnection, id: &str, )
crates/server/src/service/widget_module/service.rs:67
↓ 38 callersFunctionconnect_agent
Open the agent WebSocket with the given token and return its split halves.
crates/server/tests/common/mod.rs:216
↓ 38 callersMethodset
Set a config value by key (upsert).
crates/server/src/service/config.rs:18
↓ 37 callersFunctionhas_capability
Check if a specific capability bit is set.
crates/common/src/constants.rs:229
↓ 37 callersFunctionlogin
( State(state): State<Arc<AppState>>, ConnectInfo(addr): ConnectInfo<SocketAddr>, req_headers: Hea
crates/server/src/router/api/auth.rs:136
↓ 36 callersFunctionbuild_client
Build the dedicated reqwest client for IP quality checks. - Automatic redirects are disabled; the checker follows them manually so every hop's host c
crates/agent/src/ip_quality/http.rs:34
↓ 36 callersFunctionseed_probe_record
( db: &DatabaseConnection, server_id: &str, target_id: &str, timestamp: DateTi
crates/server/src/service/network_probe.rs:1302
↓ 35 callersFunctionsend_system_info
Complete the SystemInfo handshake with the given capability bitmask and wait for the server's Ack. `agent_local_capabilities = None` lets the server a
crates/server/tests/common/mod.rs:242
↓ 34 callersFunctionlist
()
apps/web/src/widgets-runtime/registry.ts:39
↓ 32 callersMethodadd_connection
Register a new agent connection and broadcast ServerOnline to browsers.
crates/server/src/service/agent_manager.rs:148
↓ 32 callersMethodobserve
(&mut self, attempt: AuthAttempt)
crates/agent/src/security/ssh_detector.rs:91
↓ 31 callersFunctioninsert_test_server
(db: &DatabaseConnection, id: &str, name: &str)
crates/server/src/service/network_probe.rs:1280
↓ 27 callersFunctionfetch
Fetch `request`, following redirects manually (so each hop is SSRF-checked), and return an [`HttpOutcome`]. - Validates the initial URL via [`ssrf::v
crates/agent/src/ip_quality/http.rs:51
↓ 27 callersFunctionformatDateTime
(date: Date | string | number | null | undefined, opts: Intl.DateTimeFormatOptions = {})
apps/web/src/lib/format.ts:50
↓ 27 callersFunctionhttp_client
()
crates/server/tests/agent_registration_integration.rs:96
↓ 27 callersFunctionlogin_admin
(client: &reqwest::Client, base_url: &str)
crates/server/tests/agent_registration_integration.rs:104
↓ 27 callersFunctionparse_host_port
Parse the host and port from target string. Supports "host" and "host:port".
crates/server/src/service/checker/ssl.rs:242
↓ 26 callersMethodcreate_transfer
( &self, server_id: String, user_id: String, direction: TransferDirection,
crates/server/src/service/file_transfer.rs:109
↓ 26 callersFunctionstart_test_server
()
crates/server/tests/agent_registration_integration.rs:92
↓ 25 callersFunctionattempt
(user: &str, ip: &str, success: bool)
crates/agent/src/security/ssh_detector.rs:186
↓ 25 callersFunctionget_server
( State(state): State<Arc<AppState>>, Path(id): Path<String>, )
crates/server/src/router/api/server.rs:888
↓ 24 callersFunctioninsert_test_server
(db: &DatabaseConnection, id: &str)
crates/server/src/service/traffic.rs:723
↓ 24 callersFunctionmake_service
( db: sea_orm::DatabaseConnection, )
crates/server/src/service/firewall.rs:678
↓ 22 callersMethodas_str
(self)
crates/common/src/constants.rs:74
↓ 22 callersFunctionassert_option_series_eq
(actual: &[Option<f64>], expected: &[Option<f64>])
crates/server/src/service/network_probe.rs:1342
↓ 22 callersFunctionclassify
Classify a TikTok probe response.
crates/agent/src/ip_quality/detectors/tiktok.rs:42
↓ 22 callersMethodconnect
()
apps/web/src/lib/ws-client.ts:41
↓ 22 callersFunctionget_cycle_range
Compute billing cycle date range. Returns (start_date_inclusive, end_date_inclusive).
crates/server/src/service/traffic.rs:587
↓ 22 callersMethodinto_response
(self)
crates/server/src/error.rs:73
↓ 22 callersMethodname
(&self)
crates/server/src/migration/m20260312_000001_init.rs:6
↓ 22 callersMethodrecord_event
Persist a security event, broadcast it, and evaluate matching alert rules inline. Returns the generated event id.
crates/server/src/service/security.rs:57
↓ 22 callersFunctionsend_server_msg
Send any `ServerMessage` as a text frame.
crates/agent/src/reporter.rs:3075
↓ 22 callersFunctionuseAuth
()
apps/web/src/hooks/use-auth.ts:5
↓ 21 callersFunctioncn
(...inputs: ClassValue[])
packages/ui/src/lib/utils.ts:4
↓ 21 callersFunctioncreate_pending_server
Helper: POST /api/servers and return (server_id, enrollment_id, code).
crates/server/tests/agent_registration_integration.rs:307
↓ 21 callersMethodload
()
crates/agent/src/config.rs:299
↓ 21 callersFunctionmake_manager
()
crates/server/src/service/agent_manager.rs:803
↓ 21 callersFunctionmake_manager
Build a DockerManager pointing at a bogus HTTP endpoint. `Docker::connect_with_http` only constructs the transport; it performs no network I/O and ne
crates/agent/src/docker/mod.rs:426
↓ 21 callersFunctionuseTerminalWs
(serverId: string)
apps/web/src/hooks/use-terminal-ws.ts:12
↓ 20 callersFunctionbind_fake_server
Bind a loopback listener and return it plus its bound address.
crates/agent/src/reporter.rs:3047
↓ 20 callersFunctione2e_config
Build a reporter config that points at the given loopback `ws_addr` (`host:port`) and disables every network-touching background task so the fake serv
crates/agent/src/reporter.rs:3021
↓ 20 callersFunctionhttp_client
()
crates/server/tests/widget_module_integration.rs:110
↓ 20 callersFunctioninsert_test_server
Helper: insert a test server into the database.
crates/server/src/service/alert.rs:1657
↓ 20 callersFunctionmakeJob
( overrides: Partial<{ server_id: string job_id: string target_version: string sta
apps/web/src/stores/upgrade-jobs-store.test.ts:16
↓ 20 callersFunctionmakeServer
(overrides: Partial<ServerMetrics> = {})
apps/web/src/hooks/use-servers-ws.test.ts:12
↓ 20 callersFunctionmake_input
Build a minimal CreateIncident with all optional fields at their defaults.
crates/server/src/service/incident.rs:238
↓ 20 callersMethodmark_failed
(&self, transfer_id: &str, error: String)
crates/server/src/service/file_transfer.rs:185
↓ 20 callersFunctionread_agent_until
Read text frames from the agent until one decodes into an `AgentMessage` matching `pred`, returning it. Pings/Pongs/binary frames and non-matching mes
crates/agent/src/reporter.rs:3093
↓ 20 callersFunctionread_router
()
crates/server/src/router/api/asn.rs:118
↓ 20 callersFunctionset_config
Overwrite the migration-seeded singleton `status_page` row so tests can drive the config / scope branches deterministically.
crates/server/src/service/public_status.rs:991
↓ 20 callersFunctionstart_test_server_with_db
Start an in-process test server and return a context exposing both the base URL and the underlying sea-orm connection so tests can seed rows directly.
crates/server/tests/widget_module_integration.rs:29
↓ 20 callersFunctiontest_agent_manager
()
crates/server/src/service/ping.rs:322
↓ 19 callersFunctionaccept_ws
Accept one TCP connection and complete the WebSocket handshake.
crates/agent/src/reporter.rs:3054
next →1–100 of 6,739, ranked by callers