Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZingerLittleBee/ServerBee
/ functions
Functions
6,739 in github.com/ZingerLittleBee/ServerBee
⨍
Functions
6,739
◇
Types & classes
1,185
↓ 4 callers
Method
snapshot
(&self)
crates/server/src/service/upgrade_tracker.rs:230
↓ 4 callers
Function
spawn_traceroute
( request_id: String, target: String, max_hops: u8, protocol: TraceProtocol, tx: mpsc::Sen
crates/agent/src/traceroute.rs:162
↓ 4 callers
Method
stale_connection_candidates
Find agents that have not reported for `threshold_secs` seconds.
crates/server/src/service/agent_manager.rs:381
↓ 4 callers
Function
start_test_server
()
crates/server/tests/cost_integration.rs:13
↓ 4 callers
Function
stringOrNull
(value: unknown)
apps/web/src/hooks/use-traceroute-stream.ts:19
↓ 4 callers
Method
sweep
Walk every IP and expire stale window entries. Cheap; can be called periodically by the manager.
crates/agent/src/security/scan_detector.rs:148
↓ 4 callers
Method
temp_file_path
(&self, transfer_id: &str)
crates/server/src/service/file_transfer.rs:239
↓ 4 callers
Function
temporaryGrantFor
(host: CapabilityHost, bit: number)
apps/web/src/lib/capabilities.ts:106
↓ 4 callers
Function
terminal_ws_request_with_key
Build a `/api/ws/terminal/{server_id}` client request carrying an `x-api-key` header.
crates/server/tests/ws_terminal_relay.rs:91
↓ 4 callers
Function
total_bytes
(networks: &Networks)
crates/agent/src/collector/network.rs:3
↓ 4 callers
Function
traffic_bytes
(spec: DemoServerSpec, point: usize, multiplier: usize)
crates/server/src/dev_demo.rs:939
↓ 4 callers
Function
unix_to_utc
(secs: i64)
crates/server/src/service/security.rs:306
↓ 4 callers
Method
unregister_terminal_session
Unregister a terminal session.
crates/server/src/service/agent_manager.rs:371
↓ 4 callers
Function
unsupported_tld_error
(target: &str)
crates/server/src/service/checker/whois.rs:172
↓ 4 callers
Method
update_features
Update the features list for a server.
crates/server/src/service/server.rs:272
↓ 4 callers
Function
update_group
( State(state): State<Arc<AppState>>, Path(id): Path<String>, Json(input): Json<UpdateNotification
crates/server/src/router/api/notification.rs:210
↓ 4 callers
Method
update_traceroute_round
Apply one round of trippy data to the cache. Drops the message if no placeholder exists (e.g., cache evicted or stale agent reply). Returns the snapsh
crates/server/src/service/agent_manager.rs:696
↓ 4 callers
Function
useDockerSubscription
(serverId: string, enabled = true)
apps/web/src/routes/_authed/servers/$serverId/docker/hooks/use-docker-subscription.ts:4
↓ 4 callers
Function
useIpQualityServices
()
apps/web/src/hooks/use-ip-quality-api.ts:16
↓ 4 callers
Function
useServersWs
(enabled = true)
apps/web/src/hooks/use-servers-ws.ts:768
↓ 4 callers
Function
useTheme
()
apps/web/src/components/theme-provider.tsx:227
↓ 4 callers
Function
useUpdateDashboard
()
apps/web/src/hooks/use-dashboard.ts:78
↓ 4 callers
Function
validateManifest
(input: unknown)
packages/widget-sdk/src/manifest.ts:32
↓ 4 callers
Function
validate_actions
Validate `AlertRuleAction`s. At most one action per rule. `block_source_ip` is only allowed when every item in the rule is one of `ssh_brute_force_det
crates/server/src/service/alert.rs:156
↓ 4 callers
Function
validate_monitor_url
Like [`validate_url`] but allows any port, for the service-monitor checkers where operators legitimately monitor HTTP services on non-standard ports (
crates/common/src/ssrf.rs:57
↓ 4 callers
Method
validate_warnings
Returns warnings for misconfigured provider names. Should be called once at startup; results are intended for `tracing::warn!`.
crates/server/src/config.rs:400
↓ 3 callers
Method
_parse
(input: unknown, path: string[])
packages/widget-sdk/src/z/primitives.ts:130
↓ 3 callers
Method
active_bits
OR of bits for caps with an active grant (`expires_at > now`) that are currently OFF in `base`. A grant can only turn ON an off bit.
crates/agent/src/capability_grants/store.rs:81
↓ 3 callers
Method
active_grants
Active grants as protocol DTOs (sorted by cap for stable output). Only grants that actually turn a cap ON — i.e. the cap is a known key and is OFF in
crates/agent/src/capability_grants/store.rs:103
↓ 3 callers
Function
aggregate_disk_io
Sum per-device disk I/O rates into a single (read, write) pair for broadcast.
crates/server/src/service/agent_manager.rs:17
↓ 3 callers
Function
apply_jitter
(base_secs: u64)
crates/agent/src/reporter.rs:1366
↓ 3 callers
Function
assert_near
(actual: f64, expected: f64)
crates/server/src/service/cost.rs:805
↓ 3 callers
Function
baseOptions
(_lang?: string)
apps/docs/src/lib/layout.shared.tsx:11
↓ 3 callers
Function
batch_delete
( State(state): State<Arc<AppState>>, ConnectInfo(addr): ConnectInfo<SocketAddr>, Extension(curren
crates/server/src/router/api/server.rs:982
↓ 3 callers
Function
brand_dir
Return the brand assets directory path.
crates/server/src/router/api/brand.rs:224
↓ 3 callers
Function
bring_up_docker_agent
Bring up a mock agent advertising the `docker` runtime feature plus the given capability bitmask. The docker control/read gates require both the featu
crates/server/tests/ws_agent_dispatch2.rs:98
↓ 3 callers
Method
broadcast_changed_created
Broadcast a `BlocklistChanged { kind: Created }` to subscribed browsers.
crates/server/src/service/firewall.rs:161
↓ 3 callers
Function
browser_request_with_key
Build an `/api/ws/servers` (browser) client request carrying `x-api-key`.
crates/server/tests/ws_docker_browser.rs:171
↓ 3 callers
Function
browser_ws_request_with_key
Build an `/api/ws/servers` client request carrying the given `x-api-key`.
crates/server/tests/browser_ws.rs:57
↓ 3 callers
Function
buildMenuDisplayLabel
( command: CommandDefinition, widths: MenuColumnWidths, recentCommands: Record<string, number> )
scripts/make-menu.ts:547
↓ 3 callers
Function
buildMergedDiskIoSeries
( records: Pick<ServerMetricRecord, 'disk_io_json' | 'time'>[] )
apps/web/src/lib/disk-io.ts:60
↓ 3 callers
Function
buildTimelineBackground
({ colors, geometry }: TimelineBackgroundInput)
apps/web/src/components/uptime/uptime-timeline-geometry.ts:55
↓ 3 callers
Function
build_container_stats
(container_id: &str, stats: &Stats)
crates/agent/src/docker/containers.rs:116
↓ 3 callers
Function
build_report
(spec: DemoServerSpec, sample: usize, interval_secs: i64)
crates/server/src/dev_demo.rs:866
↓ 3 callers
Function
build_server_response
( s: server::Model, agent_manager: &AgentManager, outstanding_enrollment: Option<OutstandingEnroll
crates/server/src/router/api/server.rs:245
↓ 3 callers
Function
build_widget_js
Build a single-file widget JS source with the given id baked into the JSDoc manifest and the body so we can confirm it round-trips.
crates/server/tests/widget_module_integration.rs:491
↓ 3 callers
Method
cancel_active_run
(&self, task_id: &str)
crates/server/src/service/task_scheduler.rs:34
↓ 3 callers
Method
cancel_download
Cancel a single download transfer.
crates/agent/src/file_manager.rs:420
↓ 3 callers
Function
check
Check WHOIS information for a domain. Config options: - `warning_days`: days before expiry to warn (default 30) - `critical_days`: days before expiry
crates/server/src/service/checker/whois.rs:35
↓ 3 callers
Function
check_server
( State(state): State<Arc<AppState>>, Path(id): Path<String>, )
crates/server/src/router/api/ip_quality.rs:288
↓ 3 callers
Method
cleanup
Abort all background tasks (log sessions, event stream).
crates/agent/src/docker/mod.rs:56
↓ 3 callers
Function
cleanup_audit_logs
(db: &DatabaseConnection, retention_days: u32)
crates/server/src/task/cleanup.rs:180
↓ 3 callers
Method
cleanup_expired
(&self, max_age: Duration)
crates/server/src/service/file_transfer.rs:286
↓ 3 callers
Method
cleanup_expired_requests
Remove pending requests that have exceeded their per-entry TTL.
crates/server/src/service/agent_manager.rs:665
↓ 3 callers
Function
cleanup_ping_records
(db: &DatabaseConnection, retention_days: u32)
crates/server/src/task/cleanup.rs:147
↓ 3 callers
Function
cleanup_security_events
(db: &DatabaseConnection, retention_days: u32)
crates/server/src/task/cleanup.rs:162
↓ 3 callers
Function
collect_entries
( map: &DashMap<String, RateLimitEntry>, scope: RateLimitScope, max: u32, now: chrono::DateTim
crates/server/src/router/api/rate_limit.rs:112
↓ 3 callers
Function
collect_interface_ips
Collect IP addresses from all network interfaces using sysinfo.
crates/agent/src/reporter.rs:1375
↓ 3 callers
Function
compute_disk_io
( previous: &HashMap<String, DiskCounters>, current: &HashMap<String, DiskCounters>, elapsed_secs:
crates/agent/src/collector/disk_io.rs:132
↓ 3 callers
Function
conn
()
crates/server/src/router/api/auth.rs:762
↓ 3 callers
Function
connect_browser_ws
Connect a browser update WebSocket with an `x-api-key`, consume the initial `full_sync`, and return the live socket.
crates/server/tests/ws_agent_dispatch2.rs:157
↓ 3 callers
Function
createWrapper
(testId: string)
apps/web/src/components/server/disk-io-chart.test.tsx:51
↓ 3 callers
Function
createWrapper
()
apps/web/src/hooks/use-traffic.test.tsx:7
↓ 3 callers
Function
createWrapper
()
apps/web/src/hooks/use-cost.test.tsx:8
↓ 3 callers
Function
createWrapper
()
apps/web/src/hooks/use-servers-ws-hook.test.tsx:33
↓ 3 callers
Function
create_api_key
(client: &Client, base_url: &str)
crates/server/tests/docker_integration.rs:112
↓ 3 callers
Function
create_api_key
Create an API key as an already-authenticated admin and return the raw key.
crates/server/tests/ws_agent_dispatch2.rs:140
↓ 3 callers
Function
create_pending_server_named
( client: &reqwest::Client, base_url: &str, name: &str, )
crates/server/tests/integration.rs:166
↓ 3 callers
Function
create_valid_email
(db: &sea_orm::DatabaseConnection)
crates/server/tests/notification_update_integration.rs:18
↓ 3 callers
Function
current_asset_name
返回当前构建对应的 release asset 文件名(与 release.yml 命名一致)。
crates/agent/src/upgrade.rs:10
↓ 3 callers
Function
delete_api_key
( State(state): State<Arc<AppState>>, Extension(current_user): Extension<CurrentUser>, ConnectInfo
crates/server/src/router/api/auth.rs:388
↓ 3 callers
Function
delete_server
( State(state): State<Arc<AppState>>, ConnectInfo(addr): ConnectInfo<SocketAddr>, Extension(curren
crates/server/src/router/api/server.rs:934
↓ 3 callers
Function
deoverlapLayout
(layout: Layout)
apps/web/src/components/dashboard/dashboard-grid.tsx:82
↓ 3 callers
Method
disconnect
()
apps/web/src/test/setup.ts:22
↓ 3 callers
Function
docker_logs_request_with_key
Build a docker-logs WS client request carrying the given `x-api-key`.
crates/server/tests/ws_docker_browser.rs:151
↓ 3 callers
Function
drain_auth_log
Drain `auth.log` lines from a reader and forward attempts. Public for tests. The production tail loop calls this against a file-backed reader and re-
crates/agent/src/security/journal_watcher.rs:148
↓ 3 callers
Function
drain_conntrack_events
Drain lines from an arbitrary reader. Exposed for tests so we can feed canned conntrack output without invoking the subprocess.
crates/agent/src/security/conntrack_watcher.rs:103
↓ 3 callers
Function
drain_first_connect_pushes
Drain any frames the server pushes right after the SystemInfo handshake (ping/network/IP-quality sync + firewall blocklist reset/sync for a default ag
crates/server/tests/agent_messages.rs:54
↓ 3 callers
Function
drain_kernel_json
Read kernel journal JSON lines and forward extracted source IPs. Public for tests; the production path constructs the reader from `journalctl -k`'s s
crates/agent/src/security/journal_watcher.rs:276
↓ 3 callers
Function
empty_update
()
crates/server/src/service/ping.rs:481
↓ 3 callers
Function
enabled_file_cfg
(root: &std::path::Path)
crates/agent/src/reporter.rs:2085
↓ 3 callers
Function
encode_cursor
Cursor encoded as `base64(rfc3339_created_at|id)`. Stable across calls and agnostic to the underlying schema.
crates/server/src/router/api/security.rs:96
↓ 3 callers
Method
error_reason
The failure reason for a `Failed` transfer, so the UI can explain *why a transfer failed (e.g. a deny-pattern hit) instead of a bare "failed".
crates/server/src/service/file_transfer.rs:47
↓ 3 callers
Function
execute_for_server
( state: &Arc<AppState>, task_id: &str, run_id: &str, server_id: &str, command: &str,
crates/server/src/task/task_scheduler.rs:219
↓ 3 callers
Function
extractLiveMetric
(server: ServerMetrics, metric: string)
apps/web/src/lib/widget-helpers.ts:45
↓ 3 callers
Function
extractRecordMetric
(record: ServerMetricRecord, metric: string, server?: ServerMetrics)
apps/web/src/lib/widget-helpers.ts:74
↓ 3 callers
Function
extract_bearer
Extract Bearer token from Authorization header.
crates/server/src/router/api/mobile.rs:574
↓ 3 callers
Function
extract_user_agent
Extract the User-Agent from request headers.
crates/server/src/router/api/mobile.rs:565
↓ 3 callers
Function
fakeModule
()
apps/web/src/widgets-runtime/loader.test.ts:47
↓ 3 callers
Function
fetch_external_ip
Try each URL in order; return the first successful, validated response.
crates/agent/src/reporter.rs:3962
↓ 3 callers
Method
fetch_latest
(&self)
crates/server/src/service/upgrade_release.rs:99
↓ 3 callers
Function
fetch_redacted
Hit the public-status surface with the given request builder, verify status 200 and absence of forbidden keys/substrings, and return the parsed JSON b
crates/server/tests/public_status_redaction_authenticated.rs:183
↓ 3 callers
Function
filterByIds
(items: T[], ids: string[] | undefined, key: (t: T) => string)
apps/web/src/lib/widget-helpers.ts:150
↓ 3 callers
Method
finish_job
( &self, lookup: UpgradeLookup, status: UpgradeStatus, stage: Option<UpgradeSt
crates/server/src/service/upgrade_tracker.rs:234
↓ 3 callers
Function
finiteMetric
(value: number | null | undefined)
apps/web/src/components/status/server-summary-row.tsx:33
↓ 3 callers
Function
finiteMetric
(value: number | null | undefined)
apps/web/src/components/status/server-summary-card.tsx:36
↓ 3 callers
Function
flush_batch
( session_id: &str, batch: &mut Vec<DockerLogEntry>, agent_tx: &mpsc::Sender<AgentMessage>, )
crates/agent/src/docker/logs.rs:105
↓ 3 callers
Function
formatLoad
(load: number)
apps/web/src/components/server/server-card.tsx:96
↓ 3 callers
Function
formatRelativeTime
(input: string | number | null)
apps/web/src/lib/widget-helpers.ts:118
↓ 3 callers
Function
formatTime
(value: string | null | undefined)
apps/web/src/components/security/event-detail-drawer.tsx:14
← previous
next →
701–800 of 6,739, ranked by callers