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
↓ 3 callers
Method
get
(db: &DatabaseConnection, id: &str)
crates/server/src/service/notification.rs:184
↓ 3 callers
Method
get
(db: &DatabaseConnection, id: &str)
crates/server/src/service/alert.rs:454
↓ 3 callers
Function
getBarTextColor
(pct: number)
apps/web/src/routes/_authed/servers/components/metric-bar-colors.ts:11
↓ 3 callers
Function
getDevProxyBannerState
({ allowWrites, mode, target }: { allowWrites: unknown mode: string target: unknown })
apps/web/src/components/dev-proxy-banner-state.ts:5
↓ 3 callers
Function
getNetworkTargetDisplayLocation
( t: Translate, language: string | undefined, target: NetworkTargetNameParts )
apps/web/src/lib/network-i18n.ts:112
↓ 3 callers
Function
getNetworkTargetDisplayName
( t: Translate, language: string | undefined, target: NetworkTargetNameParts )
apps/web/src/lib/network-i18n.ts:83
↓ 3 callers
Function
getNetworkTargetDisplayProvider
( t: Translate, language: string | undefined, target: NetworkTargetNameParts )
apps/web/src/lib/network-i18n.ts:124
↓ 3 callers
Function
getPayloadConfigFromPayload
(config: ChartConfig, payload: unknown, key: string)
apps/web/src/components/ui/chart.tsx:324
↓ 3 callers
Function
getStops
(container: HTMLElement)
apps/web/src/components/dashboard/widgets/gauge.test.tsx:41
↓ 3 callers
Function
get_block_io_stats
(stats: &Stats)
crates/agent/src/docker/containers.rs:200
↓ 3 callers
Function
get_network_stats
(stats: &Stats)
crates/agent/src/docker/containers.rs:184
↓ 3 callers
Function
get_platform_metadata
( metadata: &std::fs::Metadata, path: &std::path::Path, )
crates/agent/src/file_manager.rs:561
↓ 3 callers
Function
get_server_detail
Fetch a single in-scope server's full detail. Out-of-scope IDs return `NotFound` — never `Forbidden` — to avoid confirming the existence of hidden or
crates/server/src/service/public_status.rs:560
↓ 3 callers
Function
get_server_metrics
Per-server time-series metrics. Reuses `RecordService::query_history` and normalizes both raw and hourly variants into `PublicMetricsPoint`.
crates/server/src/service/public_status.rs:631
↓ 3 callers
Method
get_terminal_session
Get the terminal output sender for a session.
crates/server/src/service/agent_manager.rs:376
↓ 3 callers
Method
get_traceroute_snapshot
(&self, request_id: &str)
crates/server/src/service/agent_manager.rs:727
↓ 3 callers
Method
handle_events_stop
(&mut self)
crates/agent/src/docker/mod.rs:278
↓ 3 callers
Method
handle_logs_stop
(&mut self, session_id: &str)
crates/agent/src/docker/mod.rs:258
↓ 3 callers
Method
handle_reset
(&self)
crates/agent/src/firewall/manager.rs:50
↓ 3 callers
Function
insert_alert_rule
( db: &sea_orm::DatabaseConnection, id: &str, enabled: bool, rules_json: &str,
crates/server/src/task/alert_evaluator.rs:90
↓ 3 callers
Function
insert_minimal_snapshot
( db: &sea_orm::DatabaseConnection, id: &str, server_id: &str, )
crates/server/tests/public_status_scope.rs:135
↓ 3 callers
Function
insert_monitor
Insert a monitor row so `execute_check` can write a record and update state.
crates/server/src/task/service_monitor_checker.rs:311
↓ 3 callers
Function
insert_record_at
Insert a raw record at an explicit time with explicit disk_io_json. Numeric metric columns are zeroed so tests can focus on the field under test.
crates/server/src/service/record.rs:666
↓ 3 callers
Function
insert_server
(db: &sea_orm::DatabaseConnection, id: &str, name: &str)
crates/server/src/router/api/server.rs:1540
↓ 3 callers
Function
insert_server_with_caps
( db: &sea_orm::DatabaseConnection, id: &str, name: &str, capabilities: u32,
crates/server/src/router/ws/agent.rs:1891
↓ 3 callers
Function
insert_server_with_hidden
( db: &sea_orm::DatabaseConnection, id: &str, name: &str, hidden: bool, )
crates/server/tests/public_status_scope.rs:83
↓ 3 callers
Function
insert_test_server
(db: &sea_orm::DatabaseConnection, id: &str, name: &str)
crates/server/src/task/alert_evaluator.rs:68
↓ 3 callers
Function
insert_test_server
(db: &DatabaseConnection, id: &str)
crates/server/src/task/aggregator.rs:84
↓ 3 callers
Method
insert_traceroute_placeholder
( &self, request_id: &str, meta: TracerouteRequestMeta, )
crates/server/src/service/agent_manager.rs:673
↓ 3 callers
Function
is_ignorable_push
First-connect pushes a default agent (which reports CAP_FIREWALL_BLOCK) must tolerate and ignore. These are unrelated to the file flow under test.
crates/server/tests/agent_file_ops.rs:45
↓ 3 callers
Function
latency_ms
(server_index: usize, target_index: usize, point: usize)
crates/server/src/dev_demo.rs:920
↓ 3 callers
Method
list_for_server
List all `block_list` rows that cover `server_id`, oldest first so the agent applies them in stable order.
crates/server/src/service/firewall.rs:184
↓ 3 callers
Method
list_for_user
(&self, user_id: &str)
crates/server/src/service/file_transfer.rs:245
↓ 3 callers
Function
list_records_for_server
( db: &DatabaseConnection, server_id: &str, limit: u64, offset: u64, )
crates/server/src/service/traceroute.rs:46
↓ 3 callers
Function
list_tags
(db: &DatabaseConnection, server_id: &str)
crates/server/src/service/server_tag.rs:40
↓ 3 callers
Function
list_users
( State(state): State<Arc<AppState>>, )
crates/server/src/router/api/user.rs:35
↓ 3 callers
Function
makeEntry
(overrides: Partial<TrafficOverviewItem>)
apps/web/src/routes/_authed/servers/index.cells.test.tsx:225
↓ 3 callers
Function
makeFakeModule
(component: WidgetModule['component'])
apps/web/src/components/dashboard/widget-renderer.test.tsx:229
↓ 3 callers
Function
makeQueryClient
()
apps/web/src/hooks/use-servers-ws.test.ts:47
↓ 3 callers
Function
makeServer
(id: string, overrides: Partial<ServerMetrics> = {})
apps/web/src/components/dashboard/widgets/stat-number.test.tsx:33
↓ 3 callers
Function
makeSnapshot
(mode: 'light' | 'dark')
apps/web/src/widgets-runtime/runtime-bridge.ts:110
↓ 3 callers
Function
make_manager
()
crates/server/src/service/file_transfer.rs:304
↓ 3 callers
Method
mark_resolved
( &self, db: &DatabaseConnection, rule_id: &str, server_id: &str, even
crates/server/src/service/alert.rs:400
↓ 3 callers
Function
matches_deny_pattern
Check if a filename matches a deny pattern. Patterns: - `*.ext` — file ends with `.ext` - `prefix*` — file starts with `prefix` - `exact` — exact mat
crates/agent/src/file_manager.rs:546
↓ 3 callers
Function
metricPercent
(used: number, total: number)
apps/web/src/components/status/server-summary-card.tsx:32
↓ 3 callers
Function
mockFetchResponse
(body: unknown, options: { status?: number } = {})
apps/web/src/hooks/use-auth.test.tsx:33
↓ 3 callers
Function
notify
()
apps/web/src/widgets-runtime/runtime-bridge.ts:129
↓ 3 callers
Function
numberOrUndefined
(value: number)
apps/web/src/components/server/add-server-dialog.tsx:52
↓ 3 callers
Function
online_agent
Bring a mock agent online for `register_agent`'s server: connect the WS, consume the welcome, finish the SystemInfo handshake reporting `caps`, then d
crates/server/tests/router_server_extra2.rs:56
↓ 3 callers
Function
packet_loss
(server_index: usize, target_index: usize, point: usize)
crates/server/src/dev_demo.rs:925
↓ 3 callers
Function
parseAsDate
(timestamp: number | string | undefined)
apps/web/src/components/data-table/data-table-date-filter.tsx:20
↓ 3 callers
Function
parsePositive
(value: string)
apps/web/src/components/security/alert-presets.tsx:136
↓ 3 callers
Function
parse_field_before
Helper: given a line like `"10 packets transmitted, 9 received, 10% packet loss"`, extract the token immediately before `suffix` (trimmed, last whites
crates/agent/src/probe_utils.rs:352
↓ 3 callers
Function
parse_registrar
Parse the registrar from WHOIS response text.
crates/server/src/service/checker/whois.rs:276
↓ 3 callers
Function
patch_toggle
Patch a single column on the singleton.
crates/server/tests/public_status_gating.rs:146
↓ 3 callers
Function
pick_public_ip
Choose the first routable (non-loopback, non-private) address from a server's recorded `ipv4`/`ipv6` strings for GeoIP resolution, preferring IPv4. Re
crates/server/src/service/geoip.rs:197
↓ 3 callers
Function
port_scan_payload
(ip: &str, distinct_ports: u32)
crates/server/src/service/security.rs:424
↓ 3 callers
Function
probe_icmp_batch
Run `ping -c N` once and parse the summary statistics.
crates/agent/src/probe_utils.rs:234
↓ 3 callers
Method
ptr_lookup
(&self, ip: IpAddr)
crates/server/src/service/traceroute_enrich.rs:59
↓ 3 callers
Method
push_remove_to_covered_agents
Push a `BlocklistRemove` to every covered, online, capability-allowed agent on a high-enough protocol version.
crates/server/src/service/firewall.rs:258
↓ 3 callers
Method
push_reset_to
Tell an agent to drop every entry it currently holds and clear our `apply_state` map for that agent. Caller is responsible for verifying capability +
crates/server/src/service/firewall.rs:311
↓ 3 callers
Method
push_sync_to
Send the complete set of covering block entries to a single agent. Caller is responsible for verifying capability + protocol version.
crates/server/src/service/firewall.rs:294
↓ 3 callers
Function
readDelimitedToken
( input: string, index: number, delimiter: '`' | '*' | '**', key: string )
apps/web/src/components/dashboard/markdown-content.tsx:65
↓ 3 callers
Function
readMode
()
apps/web/src/widgets-runtime/runtime-bridge.ts:99
↓ 3 callers
Function
readString
(value: unknown)
apps/web/src/components/dashboard/widget-render-dependencies.ts:23
↓ 3 callers
Method
record_reset_ack
Audit a `BlocklistResetAck` from the agent. No `apply_state` mutation is needed because `push_reset_to` already cleared it locally.
crates/server/src/service/firewall.rs:515
↓ 3 callers
Function
register_agent
(client: &reqwest::Client, base_url: &str)
crates/server/tests/cost_integration.rs:131
↓ 3 callers
Function
register_agent
Single attempt at registration. Used by both the bootstrap loop and the reporter's mid-session rebind path. Errors are categorized so callers can retr
crates/agent/src/register.rs:82
↓ 3 callers
Method
remove_cached_report
Drop the cached report for a server. Call this only when the server row itself is gone (deletion), so the display cache doesn't outlive it. A plain di
crates/server/src/service/agent_manager.rs:329
↓ 3 callers
Method
remove_file_handle
Remove and drop the file handle for a transfer (closes the file).
crates/server/src/service/file_transfer.rs:206
↓ 3 callers
Function
resolve_target
Resolve a literal IP or hostname. `lookup_host` requires `host:port`, so we tack on a dummy port and take the first address.
crates/agent/src/traceroute.rs:54
↓ 3 callers
Function
run_cleanup_tick
Performs a single cleanup tick: prunes every retention-bound table and evicts idle file transfers. Extracted from `run` so it can be unit-tested witho
crates/server/src/task/cleanup.rs:35
↓ 3 callers
Function
run_grant_supervisor
Long-running per-connection task: re-reads the grants file, updates the shared effective-caps cache, and emits `CapabilitiesChanged` on transitions. R
crates/agent/src/capability_grants/supervisor.rs:74
↓ 3 callers
Method
run_with_external
Run with an optional external agent-message stream attached (currently sourced from [`crate::security::SecurityManager`]).
crates/agent/src/reporter.rs:64
↓ 3 callers
Function
seed_server
Insert a server row with the given id and persisted capability mirror. The server is NOT registered with the agent_manager, so it is offline.
crates/server/src/task/task_scheduler.rs:512
↓ 3 callers
Function
seed_token
Seed one device token row with fixed timestamps. `device_tokens` has NOT NULL FKs to `users` and `mobile_sessions` (which itself FKs `users`), so the
crates/server/src/service/apns.rs:133
↓ 3 callers
Function
send_agent_frame
Send a single agent frame as a JSON text message.
crates/server/tests/ws_terminal_relay.rs:142
↓ 3 callers
Function
send_docker_system_info_with_local_caps
( sink: &mut futures_util::stream::SplitSink< tokio_tungstenite::WebSocketStream< toki
crates/server/tests/docker_integration.rs:288
↓ 3 callers
Function
serialize_disk_io
(disk_io: Option<&Vec<DiskIo>>)
crates/server/src/service/record.rs:19
↓ 3 callers
Function
set_current_dir
(dir: &TempDir)
crates/agent/src/register.rs:312
↓ 3 callers
Method
set_external_ip
(&self, ip: Option<IpAddr>)
crates/agent/src/firewall/manager.rs:35
↓ 3 callers
Function
shouldLocalizePresetTarget
(language: string | undefined, target: NetworkTargetNameParts)
apps/web/src/lib/network-i18n.ts:14
↓ 3 callers
Method
simulateMessage
(data: unknown)
apps/web/src/lib/ws-client.test.ts:24
↓ 3 callers
Method
simulateOpen
()
apps/web/src/lib/ws-client.test.ts:20
↓ 3 callers
Function
spawn_status_server
Spawn a one-shot server that replies with an arbitrary `status` code and a fixed `body`. Models the non-2xx / non-redirect responses `fetch()` reads t
crates/agent/src/ip_quality/http.rs:556
↓ 3 callers
Function
start_conntrack_stream
(out_tx: mpsc::Sender<ConntrackEvent>)
crates/agent/src/security/conntrack_watcher.rs:24
↓ 3 callers
Function
status
(client: &reqwest::Client, url: &str)
crates/server/tests/public_status_gating.rs:166
↓ 3 callers
Method
store_file_handle
Store an open file handle for a download transfer.
crates/server/src/service/file_transfer.rs:193
↓ 3 callers
Function
store_with
(cap: &str, expires_at: i64)
crates/agent/src/capability_grants/supervisor.rs:125
↓ 3 callers
Function
summaryStats
(points: SparklinePoint[])
apps/web/src/lib/sparkline.ts:37
↓ 3 callers
Method
sweep
Evict IPs whose deques are empty or contain only entries older than the window. Prevents unbounded growth under "spray" attacks where each source IP a
crates/agent/src/security/ssh_detector.rs:76
↓ 3 callers
Function
terminal_job
( server_id: &str, status: UpgradeStatus, finished_at: DateTime<Utc>, )
crates/server/src/task/upgrade_timeout.rs:67
↓ 3 callers
Function
test_addr
()
crates/server/src/router/api/ip_quality.rs:335
↓ 3 callers
Function
test_addr
()
crates/server/src/router/ws/agent.rs:1788
↓ 3 callers
Function
toMonitorType
(value: string | null | undefined)
apps/web/src/routes/_authed/settings/service-monitors.tsx:51
↓ 3 callers
Function
to_public_config
Straight field mapping from the singleton entity to the public DTO.
crates/server/src/service/public_status.rs:335
↓ 3 callers
Function
try_recv_one
Read a single text frame from the agent ws and parse it as JSON. Returns None on timeout.
crates/server/tests/integration.rs:4408
↓ 3 callers
Method
ttl_remaining
(&self)
crates/server/src/service/upgrade_release.rs:41
↓ 3 callers
Method
update_docker_containers
(&self, server_id: &str, containers: Vec<DockerContainer>)
crates/server/src/service/agent_manager.rs:483
↓ 3 callers
Method
update_stage
(&self, lookup: UpgradeLookup, stage: UpgradeStage)
crates/server/src/service/upgrade_tracker.rs:135
← previous
next →
801–900 of 6,739, ranked by callers